Segment violation (was Re: Why I could not cast string to int?)

Timon Gehr timon.gehr at gmx.ch
Fri Feb 3 17:04:33 PST 2012


On 02/03/2012 01:06 PM, Jonathan M Davis wrote:
> On Friday, February 03, 2012 11:08:54 Artur Skawina wrote:
>> BTW, scope should have been the default for *all* reference type function
>> arguments, with an explicit modifier, say "esc", required to let the thing
>> escape. It's an all-or-nothing thing, just like immutable strings - not
>> using it everywhere is painful, but once you switch everything over you get
>> the benefits.
>
> That would destroy slicing. I'm firmly of the opinion that scope should be used
> sparingly.
>
> - Jonathan M Davis

It could be enabled on by type basis.


More information about the Digitalmars-d-learn mailing list