realbasic-nug
[Top] [All Lists]

Re: Turning Integers into MemoryBlocks?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Turning Integers into MemoryBlocks?
From: Jonathan Johnson <jonj at realsoftware dot com>
Date: Tue, 31 Aug 2004 09:48:03 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <86BE5A62-FB59-11D8-9A45-000393C0FE92 at 006 dot co dot uk> <FF5157ED-FB5B-11D8-B23F-000A95880024 at bitjuggler dot com>

On Aug 31, 2004, at 9:42 AM, Thomas Reed wrote:

I have a number of callback routines that are defined to return MemoryBlocks, and they work just fine.

I'm surprised by that. The calling function will simply have the object's address returned, not the address of the memoryblock's data.

I'd be extremely surprised if you couldn't use MemoryBlock as a parameter type in a callback as well.

It doesn't work. REALbasic doesn't put any glue-code in-between your method and the outside world. There is no way for REALbasic to know whether or not you wish for a parameter to be transformed, or whether something may already be a particular type. It is left in the hands of the implementer.

HTH,
Jon


--
Jonathan Johnson
Testing Department
REAL Software, Inc.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>