asm code and an inout function argument

Jesse Phillips jessekphillips at gmail.com
Fri May 15 08:11:55 PDT 2009


On Fri, 15 May 2009 07:14:50 -0400, Vladimir A. Reznichenko wrote:

> It looks like "inout/ref uint a" is equal to "uint* a" but the situation
> when we write D's code "a = 5" means "*a = 5". This is not obvious, at
> all. So when I wrote asm code, it wouldn't work.

Isn't that the point of a reference, that you don't have to dereference 
it? In fact I believe "*a = 5" would be an error when using references.



More information about the Digitalmars-d mailing list