|
![](/i/fill.gif) |
On 3/4/2012 14:33, Warp wrote:
> return mData[index];
Given the previous discussion, I'm betting this is the error Warp was
talking about - returning the address of a variable that gets disposed when
this object gets disposed. It's basically the same bug - scopes exceeding
lifetimes. I'm amused that Ada actually prevents this bug unless you
explicitly say "Yes, yes, I'm intentionally assigning a value to a pointer
whose lifetime is shorter than that of the pointer."
--
Darren New, San Diego CA, USA (PST)
People tell me I am the counter-example.
Post a reply to this message
|
![](/i/fill.gif) |