> -----Original Message-----
> Currently to use pointers for speed we would do something like :
> ( or use malloc() )
>
> dim m as new MemoryBlock(800)
> dim p as ptr = m.Ptr(0)
> dim kDouble as integer = 4
> for i as integer = 0 to 100
> p.Double(i*kDouble) = 666.666
> Next
>
> ?
>
> - now wouldn't it be nice if we could just do:
>
> dim m as new MemoryBlock(800)
> for i as integer = 0 to 100
> m.Double[I] = 666.666
> Next
>
> Asn well as
>
> for i as integer = 0 to 100
> p.Double[I] = 666.666
> Next
>
I don't see why you couldn't just do:
dim m as new MemoryBlock(800)
dim p as ptr = m.Ptr(0)
for i as integer = 0 to 99 step 8
p.Double(i) = 666.666
Next
Is that really all that terrible? In the universe of priorities that Mars
could work on, I mean, really...
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>