A Refcounted Array Type
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Tue Mar 3 15:49:42 PST 2015
On Tue, 03 Mar 2015 14:22:15 +0000, Kagamin wrote:
> On Saturday, 28 February 2015 at 04:18:38 UTC, ketmar wrote:
>>> His case is not @safe, so we can ignore that problem.
>>
>> the compiler tends to disagree:
>>
>> === test.d ===
>> int myglobal;
>>
>> class A {
>> ~this () @safe { if (myglobal == 42) assert(0); }
>> }
>>
>> void main () {
>> auto a = new A;
>> }
>> ======
>>
>> dmd -w -c -o- test.d
>>
>> wow! no warnings, no errors!
>
> And what's the problem?
the answer is in your quotation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150303/8c870a9d/attachment.sig>
More information about the Digitalmars-d
mailing list