delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/14/23:33:33

Date: Wed, 14 Jan 1998 20:31:16 -0800 (PST)
Message-Id: <199801150431.UAA16287@adit.ap.net>
Mime-Version: 1.0
To: Noam Rotem <nrotem AT johnbryce DOT co DOT il>, Anthony DOT Appleyard AT umist DOT ac DOT uk
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Bit fields in djgpp: +1 turned into -1
Cc: djgpp AT delorie DOT com

At 04:14  1/14/1998 PST, Noam Rotem wrote:

>Anyway, about your final remark there: isn't it better to use:
>
>   typedef unsigned int uns 
>
>rather than :
>
>   #define uns unsigned
>
>?? This form is checked by the compiler (and not precompiled), and sounds a 
>better way to do the same. 
Except that his way, you can write things like:

uns long foo;
uns char bar;

etc. It's a matter of style, anyway. I find it decreases readability, but YMMV.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019