asm code and an inout function argument
Vladimir A. Reznichenko
kalessil at gmail.com
Fri May 15 03:43:30 PDT 2009
Tim Matthews Wrote:
> On Fri, 15 May 2009 22:29:07 +1200, Robert Fraser
> <fraserofthenight at gmail.com> wrote:
>
> > Vladimir A. Reznichenko wrote:
> >> I have a function:
> >> void test (inout uint a)
> >> {
> >> asm
> >> {
> >> mov a, 0x25;
> >> }
> >> }
> >> The trouble is that the function's call doesn't change the a variable.
> >> Any ideas?
> >
> > Inout variables are pointers.
>
>
> Why is it 'inout' and not 'ref' ?
Aren't they the same?
More information about the Digitalmars-d
mailing list