about pointer syntax

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Oct 14 16:05:41 PDT 2010


On 10/14/10, bearophile <bearophileHUGS at lycos.com> wrote:

> Generally the field dereferencing doesn't require the "(*symbol).name", in D
> you use "symbol.name".
> Pointers to arrays are possible, but quite uncommon in D.

I'm not sure, but I think function pointers (the C syntax ones, not
variables declared with function/delegate) still need parenthesis for
dereferencing? IIRC I was getting back some weird errors a few days
ago when I was trying it out. I might be wrong though..


More information about the Digitalmars-d-learn mailing list