microsoft / ifc-spec

IFC format specification
Creative Commons Attribution 4.0 International
71 stars 7 forks source link

Define arity as a distinct type, not bitfield #68

Open GabrielDosReis opened 2 years ago

GabrielDosReis commented 2 years ago

The IFC spec has the notion of arity (to describe the number of parameter of abstractions such as macros, functions, templates, etc.) and describe them as bitfields. That creates an interpretation problem when considering endianness of the IFC.

Suggestion: define Arity and variadicity as distinct types, not bitfields.