Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] [BUG] in make struct! ?

From: rebol-list2::seznam::cz at: 29-Jul-2003 12:28

Hello rebol-list, just wondering if this is a bug: this seems to be ok:
>> s: make struct! [a [short]] [1] third s
== #{0100}
>> s: make struct! [a [short] b [short]] [1 2] third s
== #{01000200}
>> s: make struct! [a [short] b [short] c [short]] [1 2 3] third s
== #{010002000300}
>> s: make struct! [a [short] b [short] c [long]] [1 2 3] third s
== #{0100020003000000} but:
>> s: make struct! [a [short] b [long]] [1 2] third s
== #{0100000002000000} I suppose it should be == #{010002000000} If it's a bug, it should be fixed. If it's by design, it would make the struct! much more useless:( and I will have to rather use the 'parse to get data from binary stream:( PS: I would like to know why make struct! is still not available in rebol/core:( -- Best regards, rebOldes mailto:[oliva--david--seznam--cz]