On May 16, 2007, at 3:39 PM, Peter K. Stys wrote: > To clarify: RB2K7r1, OS X, building OS X UB. One array of singles in > the struct (not an array of structs), + about 40 bytes of other vars. > > My reading of the RB docs suggests structs are allocated on the stack > and passed by value, hence on the stack. > > Using a memblock was my next thought but, alas, memblocks are not > allowed within structs: curious, why can't i store a 4-byte ptr to a > block of allocated memory in a struct as you can do in C? No dice.
Of course you can; declare the parameter as ByRef. Charles Yeomans _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
