[article] Language Design Deal Breakers

Kenji Hara k.hara.pg at gmail.com
Wed May 29 08:44:45 PDT 2013


Andrei, if the variable type has some indirections, it would be correctly
rejected.

@safe void foo()
{
   int* x = void;  // error
}

Error: variable test.foo.x void initializers for pointers not allowed in
safe functions

So I'm not sure bug 10201 is correct or not...

Kenji Hara


2013/5/30 Dicebot <m.strashun at gmail.com>

> On Wednesday, 29 May 2013 at 15:19:42 UTC, Andrei Alexandrescu wrote:
>
>> YES. Oh boy how the heck did we miss that.
>>
>> Andrei
>>
>
> Makes sense :)
>
> http://d.puremagic.com/issues/**show_bug.cgi?id=10201<http://d.puremagic.com/issues/show_bug.cgi?id=10201>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130530/7a731e79/attachment.html>


More information about the Digitalmars-d mailing list