The original UNIX system calls returned error by setting the CARRY ("C") bit on the PSW.
Some idiot decided in the split I/D mode (and later on the VAX) to put a ZERO at location zero. This led to a lot more sloppy coding.
>
> The cast syntax, arguably one of the ickiest parts of C syntax, was
> invented in desperation -- we needed the feature, and there was no good
> syntax proposal. I blush to admit that the one Dennis chose is one that I
> suggested, largely because (unlike some of the others) it was easy to
> implement in Yacc.
Yep, the problem was that the book said that a cast was to perform the same operation as assigning a value to an
invented temporary of the cast type. This of course, didn't fully explain it in the case of some cast behavior. C++
had to devolve the C cast into FIVE different kinds of cast to make it sane.
_______________________________________________
TUHS mailing list
TUHS@minnie.tuhs.org
https://minnie.tuhs.org/mailman/listinfo/tuhs