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

[REBOL] Newbie need help

From: bruno:fine:wanadoo at: 9-Oct-2002 17:58

Hello i am newbie and i need some help. i want to translate this sample from C to Rebol : union uniontest{ unsigned char data; struct{ unsigned char c:3; unsigned char x:5; } dum; }; int main(int argc, char* argv[]) { uniontest dummy; dummy.data=(char)9; printf("%x",(char)dummy.dum.c); printf("\r\n%x",dummy.dum.x); return 0; } How could i use this kind of union with Rebol ? Thx for your help