Best error msg ever
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Sat Feb 11 15:10:05 PST 2017
On 2/10/2017 9:42 PM, Chris Wright wrote:
> On Fri, 10 Feb 2017 21:19:37 -0800, Walter Bright wrote:
>> On 2/10/2017 5:14 PM, Chris Wright wrote:
>>> And @safe doesn't stop you from using uninitialized variables.
>>
>> As shown, it does.
>
> Default-initialized variables, sorry.
>
> I don't see what's less safe about
>
> cast(MyInterface)new Object
It's the other way around that's unsafe - casting an interface to an Object.
More information about the Digitalmars-d
mailing list