May 05, 2007

Jarrett Billingsley wrote:
> "Daniel Keep" <daniel.keep.lists@gmail.com> wrote in message news:f1hkrr$o19$1@digitalmars.com...
>> Weird; you're right.  It does work.  I *swear* it didn't used to, tho. I remember having to work around the problem for a library I was writing and being a bit annoyed at the time...
>>
>> Oh well.
> 
> Sure you weren't trying to return the address of a parameter at the time?

I was trying to do one of two things: I was either trying to cast an inout argument into a ubyte[] or back, or trying to take the address of an argument, convert it to a ubyte[], then return a .dup of it. Basically, I was trying to do blind byte copies.

	-- Daniel

-- 
int getRandomNumber()
{
    return 4; // chosen by fair dice roll.
              // guaranteed to be random.
}

http://xkcd.com/

v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP  http://hackerkey.com/
1 2
Next ›   Last »