Return by 'ref' problems...

Manu turkeyman at gmail.com
Fri May 4 03:10:53 PDT 2012


On 4 May 2012 11:46, Jonathan M Davis <jmdavisProg at gmx.com> wrote:

> typeof(foo) blah2 = &func;
>

I just spotted the problem:
 typeof(&foo) blah = &foo;

Was missing the '&' before the type. This works... However, in my case, I
don't have such a function defined to copy the type from, so it doesn't
help me any :/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120504/bb3d583e/attachment.html>


More information about the Digitalmars-d mailing list