realbasic-nug
[Top] [All Lists]

Re: pointer arithmetic

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: pointer arithmetic
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Tue, 30 Jul 2002 12:41:56 -0700
At 3:19 PM -0400 7/30/02, Kevin Ballard wrote:

How is that the equivalent? packed.ptr(0) should return a memoryblock,
whereas packed.long(0) returns an integer. So the first way shouldn't even
compile.

Right, and it doesn't. What I wrote was the equivalent of what he was trying to do (find the difference between two addresses).

Cheers,
- Joe
--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'


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