[Issue 9941] Allows to return class objects and pointers to the structures, which were created with "new".
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 21 12:59:47 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9941
--- Comment #2 from Igor Stepanov <wazar.leollone at yahoo.com> 2013-04-21 12:59:45 PDT ---
(In reply to comment #1)
> This is currently allowed:
>
>
> class Foo {
> int f;
> this(int a) { f = a; }
> }
> const foo = new Foo(42);
> void main() {}
Yes:) I was asked to create an issue for this opportunity.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list