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

[REBOL] Re: Newbie need help

From: rotenca:telvia:it at: 10-Oct-2002 22:03

Hi, Bruno you could simulate unions with object and functions. This example put in c first three bits and in x the last five bits union-c: context [ data: none c: does [to integer! data / 32] x: does [to integer! data and 31] ] dum: make union-c [] dum/data: #"a" print [dum/data dum/c dum/x]; = a 3 1 dum/data: #"*" print [dum/data dum/c dum/x];==* 1 10 --- Ciao Romano