surprising semantics of the && expression

Derek Fawcus dfawcus+dlang at employees.org
Thu Feb 5 11:39:03 UTC 2026


On Thursday, 5 February 2026 at 11:34:39 UTC, Derek Fawcus wrote:
> On Thursday, 5 February 2026 at 02:04:00 UTC, Walter Bright 
> wrote:
>> On 2/4/2026 11:41 AM, Derek Fawcus wrote:
>>>> K+R C did not have a void type.
>>> 
>>> It did, added around Nov '78 (or latest Jul 82).
>>
>> My copy of K+R was published in 1978. No void!
>
> So was mine. As I noted, the compiler had it, simply that the 
> book did not mention it.

More to the point though,  for backward compatibility, the 
compiler still allowed falling off the end of a function 
returning 'int'.

DF




More information about the Digitalmars-d mailing list