Microsoft working on new systems language

Walter Bright newshound2 at digitalmars.com
Mon Dec 30 15:38:38 PST 2013


On 12/30/2013 1:39 PM, "Ola Fosheim Grøstad" 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> On Monday, 30 December 2013 at 21:21:06 UTC, Walter Bright wrote:
>> It causes problems when linking in code developed elsewhere that makes
>> assumptions about new's behavior.
>
> Yes, if you don't do new/delete pairs under the same circumstances you risk
> having problems.

And people don't do that with C++. That's the whole problem with GLOBAL state.


>> Even if you wrote all the code, it suffers from the usual problems of using
>> global variables to set global state that various parts of the code rely on,
>> i.e. encapsulation failure.
>
> But isn't this exactly what the proposed allocation system linked above enables?

??


More information about the Digitalmars-d mailing list