Liste des Groupes | Revenir à co vms |
On 8/15/24 13:34, Simon Clubley wrote:At least the C people can define an unsigned variable.To extend this, I also know the difference between signed and unsignedAbsolutely, must have come from an assembler background, where the use of signed branches and arithmetic, can get you into serious trouble.
variables and I have a default-unsigned approach unless I absolutely
_need_ a signed variable.
>
Unfortunately, a lot of the material out there doesn't seem to understand
that designing a program is about modelling a real-world problem and that
it isn't OK to just use a signed integer to store an unsigned value.
The standard C library, of course, tends to use signed variables for
everything, a gross error that has never been fixed...
Les messages affichés proviennent d'usenet.