good example of assert as expression ?

user1234 user1234 at 12.de
Tue Feb 3 20:04:21 UTC 2026


On Tuesday, 3 February 2026 at 20:03:31 UTC, user1234 wrote:
> On Tuesday, 3 February 2026 at 20:01:47 UTC, Richard (Rikki) 
> Andrew Cattermole wrote:
>>
>> On 04/02/2026 8:58 AM, user1234 wrote:
>>> [...]
>>
>> && isn't useful here, its ||
>>
>> I.e. we use it in the form of ``ptr || assert(0)`` for the 
>> null check (not exact but close enough).
>
> Ah yes, OrOr. Shame on me.

Initial question still stands however.


More information about the Digitalmars-d mailing list