You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There shall be a documented rules for the different generators for default values (e.g. int => 0, real => 0.0, string => "". Are default values specific to the generator? For example for python it is True not true. So the IDL would need to define own default value syntax and a destination generator might need to transform them.
struct {
int value = 0; // define 0 as default value when struct is initialised
list<string> = [ "hello"] // defines an array of values
}
interface Hello {
int add(int a=0, int b=1) = 0; // return 0 if not implemented
}
It shall be possible to define default values for properties, struct members, enums, flags. E.g.
or using decorators
The text was updated successfully, but these errors were encountered: