struct constructors and destructors.

Danni Coy via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 19 05:23:06 PDT 2017


On Wed, Jul 19, 2017 at 7:09 PM, Stefan Koch via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:

>
> What happens is this.
>
> void open()
> {
>   foo = () {
>   Foo _tmp = Foo.__ctor("test");
>   return _tmp;
>   } ();
> }
>
>
> Error: need 'this' for 'this' of type 'ref Foo(string s)'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20170719/dc07a33a/attachment.html>


More information about the Digitalmars-d mailing list