OT: RAII pointers

Moritz Maxeiner via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 3 15:08:40 PDT 2017


On Saturday, 3 June 2017 at 21:46:45 UTC, Stanislav Blinov wrote:
> On Saturday, 3 June 2017 at 21:39:54 UTC, Moritz Maxeiner wrote:
>> It's always true, because I explicitly wrote *might*, not 
>> *will*, to indicate that it depends on your use case. Your 
>> example is a common use case where you can't skip the check.
>
> Programmers and their tight-binding logic...
>
> - Honey, please buy a loaf of bread. If there are eggs, buy a 
> dozen.
> ...
> - Hello, do you have eggs?
> - Yes.
> - Dozen loaves of bread, please.
>
> ;)

That usually happens when two sides interpret an ambiguous 
statement ;)


More information about the Digitalmars-d-learn mailing list