List of Phobos functions that allocate memory?

Meta jared771 at gmail.com
Sat Feb 8 10:03:54 PST 2014


On Saturday, 8 February 2014 at 11:24:56 UTC, Dmitry Olshansky 
wrote:
> 08-Feb-2014 03:01, Meta пишет:
>> On Friday, 7 February 2014 at 22:57:26 UTC, Jonathan M Davis 
>> wrote:
>>> On Friday, February 07, 2014 20:43:38 Dmitry Olshansky wrote:
>> You could always return an Option!char. Nullable won't work 
>> because it
>> lets you access the naked underlying value.
>
> This is ridiculously distracting suggestion and simply has no 
> merits whatsoever.
>
> To underline how impractical this suggestion is: currently 
> every code out there expect dchar out of .front not some magic 
> animal called 'Option!char'.

I'm not actually suggesting a replacement. Just wishful thinking 
on how the function could've been better designed.


More information about the Digitalmars-d mailing list