asm code and an inout function argument

Denis Koroskin 2korden at gmail.com
Fri May 15 08:35:02 PDT 2009


On Fri, 15 May 2009 19:11:55 +0400, Jesse Phillips <jessekphillips at gmail.com> wrote:

> 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.

Isn't it an error right now?



More information about the Digitalmars-d mailing list