anuragraghavan / franca

Automatically exported from code.google.com/p/franca
0 stars 0 forks source link

It is not specified whether the elements of a structure are ordered or not #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In Franca it is not specified whether the elements of a structure are ordered 
or not. E.g. is

struct ExampleStruct {
    UInt8 member1
    String member2
}

the same as 

struct ExampleStruct {
    String member2
    UInt8 member1
}

If the ordering is not specified by Franca (either implicit, or explicit via a 
new notation), it has to be specified in the D-Bus deployment model.
So the most pragmatic solution is to make the ordering as specified in the 
struct.

Original issue reported on code.google.com by peter.go...@gmail.com on 18 Apr 2013 at 2:25

GoogleCodeExporter commented 9 years ago
Franca structs have a specified ordering as defined in the IDL. Apart from the 
actual order in the IDL file, there is no explicit language construct. So the 
two structs in the example above are different. 

I am setting this issue to type Task because we have to add this explanation to 
the reference chapter of the User Guide, if it is not mentioned yet.

Original comment by klaus.birken@gmail.com on 18 Apr 2013 at 5:30

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 26 Sep 2013 at 2:34