Yes- I like your syntax alternative too. Jurys out on whether I would want
to use the square brackets instead of round - the advantage being that it
clearly signifies that this is NOT an RB array but a pointer being
dereferenced as a C array.


On 22/1/07 22:41, "Frank Condello" <[EMAIL PROTECTED]> wrote:

> On 22-Jan-07, at 4:23 PM, Daniel Stenning wrote:
>> 
>> dim myCInt64ArrayPointer as Ptr = getMyPointer()
>> dim myElement as Int64 = Ptr.Int64[8]
>> 
>> note that whereas dim myElement as Int64 = Ptr.Int64(8) returns the
>> second
>> element as an offset of 8 gives us the second Int64 in the array
>> dim myElement as Int64 = Ptr.Int64[8] would return the 8th element
>> - ie
>> using
>> an offset from Ptr of 8X8 bytes.
>> Sign on here if this is of use to you:
> 
> I like the idea, but not so much the implementation. Strongly typed
> pointers would make more sense to me, e.g.:
> 
>    Pointer myCInt64ArrayPointer as Int64 = getMyPointer()
>    Dim myElement as Int64 = myCInt64ArrayPointer(8) // Get the 8th Int64
> 
> Frank.
> <http://developer.chaoticbox.com/>
> 
> 
> _______________________________________________
> 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>
> 


_______________________________________________
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>

Reply via email to