Re: Bitvectors

From: Edward Glamkowski (EGlamkowski@MATHEMATICA-MPR.COM)
Date: 02/16/98


>>Howabout something like:
>>struct onebit {
>>  unsigned bit0 : 1;
>>} bits[1024];
>
>Ugly :)
>
>bits[512].bit0

Well.. ;)

Or, you could always use perl! :)
Then it becomes something like:
for i (1..1024) {
  bit{i}0 = 1;
}

Or whatever.  I haven't used symbolic references in a long time, so
I may the syntax wrong, but its close enough :)

There is a PerlMUD, but it is more moo-like than diku-like.
It would be a fun exercise in Perl to make a Perl version of Circle :)


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST