Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #23402 > unrolled thread

Unsinged types

Started byJase Schick <nospam@nospam.com>
First post2012-07-19 20:03 +0000
Last post2012-07-22 10:36 +0200
Articles 3 on this page of 43 — 20 participants

Back to article view | Back to comp.lang.c


Contents

  Unsinged types Jase Schick <nospam@nospam.com> - 2012-07-19 20:03 +0000
    Re: Unsinged types Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-07-19 21:29 +0100
      Re: Unsinged types jacob navia <jacob@spamsink.net> - 2012-07-19 23:15 +0200
    Re: Unsinged types Robert Wessel <robertwessel2@yahoo.com> - 2012-07-19 16:46 -0500
    Re: Unsinged types Ben Pfaff <blp@cs.stanford.edu> - 2012-07-19 15:47 -0700
      Re: Unsinged types Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-07-19 21:06 -0400
        Re: Unsinged types Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-07-20 02:32 +0100
          Re: Unsinged types Stephen Sprunk <stephen@sprunk.org> - 2012-07-19 21:08 -0500
            Re: Unsinged types Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-07-20 04:26 +0100
          Re: Unsinged types Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-07-19 22:56 -0400
            Re: Unsinged types Kenneth Brody <kenbrody@spamcop.net> - 2012-07-20 14:57 -0400
            Re: Unsinged types Keith Thompson <kst-u@mib.org> - 2012-07-20 12:36 -0700
        Re: Unsinged types Kenneth Brody <kenbrody@spamcop.net> - 2012-07-20 14:56 -0400
      Re: Unsinged types Seungbeom Kim <musiphil@bawi.org> - 2012-07-20 14:11 -0700
        Re: Unsinged types Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-07-20 17:41 -0400
          Re: Unsinged types Seungbeom Kim <musiphil@bawi.org> - 2012-07-21 14:07 -0700
            Re: Unsinged types "BartC" <bc@freeuk.com> - 2012-07-21 22:26 +0100
            Re: Unsinged types Tim Rentsch <txr@alumni.caltech.edu> - 2012-07-22 00:01 -0700
              Re: Unsinged types "BartC" <bc@freeuk.com> - 2012-07-22 10:37 +0100
                Re: Unsinged types Tim Rentsch <txr@alumni.caltech.edu> - 2012-09-07 11:34 -0700
              Re: Unsinged types gwowen <gwowen@gmail.com> - 2012-07-23 00:06 -0700
                Re: Unsinged types Tim Rentsch <txr@alumni.caltech.edu> - 2012-09-07 11:30 -0700
            Re: Unsinged types Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2012-07-22 14:29 +0300
              Re: Unsinged types "BartC" <bc@freeuk.com> - 2012-07-22 14:43 +0100
                Re: Unsinged types Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2012-07-22 19:12 +0300
              Re: Unsinged types Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-07-22 12:14 -0700
          Re: Unsinged types Tim Rentsch <txr@alumni.caltech.edu> - 2012-07-21 14:57 -0700
    Re: Unsinged types Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-07-20 00:11 -0700
    Re: Unsinged types Andrew Cooper <amc96@cam.ac.uk> - 2012-07-20 10:00 +0100
      Re: Unsinged types Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-07-20 23:48 -0700
        Re: Unsinged types Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-07-21 15:24 +0100
          Re: Unsinged types Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-07-21 08:53 -0700
            Re: Unsinged types Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-07-21 17:48 +0100
              Re: Unsinged types Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-07-21 11:22 -0700
                Re: Unsinged types Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-07-21 22:35 +0100
                  Re: Unsinged types Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-07-21 14:55 -0700
            Re: Unsinged types "BartC" <bc@freeuk.com> - 2012-07-21 18:27 +0100
              Re: Unsinged types Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-07-21 11:37 -0700
                Re: Unsinged types Kenneth Brody <kenbrody@spamcop.net> - 2012-07-23 14:02 -0400
                  Re: Unsinged types Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-07-23 12:21 -0700
                    Re: Unsinged types pete <pfiland@mindspring.com> - 2012-07-23 23:57 -0400
    Re: Unsinged types "Bill Leary" <Bill_Leary@msn.com> - 2012-07-20 20:21 -0400
    Re: Unsinged types "io_x" <a@b.c.invalid> - 2012-07-22 10:36 +0200

Page 3 of 3 — ← Prev page 1 2 [3]


#23647

Frompete <pfiland@mindspring.com>
Date2012-07-23 23:57 -0400
Message-ID<500E1D1A.6765@mindspring.com>
In reply to#23627
Malcolm McLean wrote:

> There's a lot of code which assumes that int can index an array.

Why do you consider that to be remarkable?

N1570

  6.5.2.1 Array subscripting

  Constraints

1 One of the expressions shall have type 
  ‘‘pointer to complete object type’’, 
  the other expression shall have integer type,
  and the result has type ‘‘type’’.

-- 
pete

[toc] | [prev] | [next] | [standalone]


#23467

From"Bill Leary" <Bill_Leary@msn.com>
Date2012-07-20 20:21 -0400
Message-ID<QsudnSEXlY6Qa5TNnZ2dnUVZ_hudnZ2d@giganews.com>
In reply to#23402
"Jase Schick"  wrote in message news:ju9p6k$rg0$1@speranza.aioe.org...
> Hi Does C still need unsigned types? My preferred language Java manages
> perfectly well without them. Do many people ever use unsigned types
> nowadays and if so why? In a 64-bit world, the extra range is rarely
> worth the hastle it seems to me.

((assuming "Unsinged" == "unsigned"))

In my work (BIOS and Embedded systems) yes, we use unsigned data all the 
time.  In fact, far more often than signed.

As for "... Java manages perfectly well without them." we've recently 
encountered some trouble trying to work with binary data in Java because it 
keeps doing interesting things with bytes (8 bits) and words (of 16 bits) 
when the most significant bit is set.

    - Bill

[toc] | [prev] | [next] | [standalone]


#23556

From"io_x" <a@b.c.invalid>
Date2012-07-22 10:36 +0200
Message-ID<500bba39$0$13272$4fafbaef@reader2.news.tin.it>
In reply to#23402
"Jase Schick" <nospam@nospam.com> ha scritto nel messaggio
news:ju9p6k$rg0$1@speranza.aioe.org...
> Hi Does C still need unsigned types? My preferred language Java manages
> perfectly well without them. Do many people ever use unsigned types
> nowadays and if so why? In a 64-bit world, the extra range is rarely
> worth the hastle it seems to me.
>
> Jase

\/\/ unsigned

if some conversion problem unsigned-int
#define  u32 unsigned
#define  i32 int

u32   f(u32  a)
{i32   error=-1
 if((i32) a<0 )  return error
...


[toc] | [prev] | [standalone]


Page 3 of 3 — ← Prev page 1 2 [3]

Back to top | Article view | comp.lang.c


csiph-web