Sequence allocation
- Posted by Michael Nelson <mike-nelson-ODAAT at WORLDNET.ATT.NET> Jul 20, 2000
- 359 views
Oops! In my previous post the line s2=s1&{4,5,6} should read s2={s1,4,5,6} and the following line should be s2[4]=0 In the I cited, s1 is not being inserted into a sequence, its elements are, and since they are integers, they will be copied. My origianl example would still be workable if the elements of s1 were not integers. By the way, I forgot to add in my previous post that this integers and pointers representation of sequences is the reason that Euphoria is limited to 31-bit integers in a 32-bit environment: one bit is used as a flag to indicate a pointer. -- Mike Nelson