Member function address
div0
div0 at users.sourceforge.net
Sat Nov 21 13:59:51 PST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David Nadlinger wrote:
>> Although the code works fine with DMD, LDC complains that »this« is needed
> to evaluate &foo in addressOf.
That looks like a ldc bug. &foo is occurring in a normal method so it
does have 'this'.
> Is this a bug in LDC or in fact illegal code
> which DMD happens to erroneously accept? Are there any less hackish ways to
> perform the check?
Not with D1 I think.
D2 has traits to help with this sort of thing.
http://www.digitalmars.com/d/2.0/traits.html
- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFLCGLXT9LetA9XoXwRAu7LAJ9GXGar/C/wyjkdRmrYLp5ZHsK7gACeLznU
T0RIByTstdeRHgsejvdv+B0=
=TgeR
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-learn
mailing list