[Issue 13182] extern(C++) classes cause crash when allocated on the stack with scope
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jul 22 01:59:03 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13182
--- Comment #3 from yebblies <yebblies at gmail.com> ---
(In reply to bearophile_hugs from comment #2)
> (In reply to yebblies from comment #0)
>
> > void main()
> > {
> > scope C c = new C();
> > }
>
> Isn't that usage of scope deprecated?
I don't know if it's really deprecated. I thought it was, but then Walter told
me to use it. If we do get proper 'scope' in the language then this code will
become perfectly safe, so...
> And isn't it better to fix language
> parts that are not deprecated?
No. It is better to fix the parts that are useful, like this is for me. I
marked it as a blocker because it's currently blocking DDMD.
--
More information about the Digitalmars-d-bugs
mailing list