The methods in `Fiddle::CParser` such as `parse_struct_signature` are useful on their own, outside of a class instance. Would it make sense to be able to call these as module methods, in addition to the existing instance method interface? i.e. ```ruby require 'fiddle/cparser' Fiddle::CParser.parse_struct_signature(...) ```
Activity
kou commentedon Apr 13, 2023
Could you share your use case?
We may introduce a new more convenient API instead of exporting
parse_struct_signaturewith the current specification.catlee commentedon Apr 19, 2023
I was trying to create a representation of a C structure without having to
include Fiddle::CParseror some other module into my namespace.kou commentedon Apr 20, 2023
OK. Then, does the following code satisfy your use case with the current API?