www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/19/16:00:24

From: "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++, complex, etc
Date: Fri, 19 May 2000 23:56:28 +0400
Organization: MTU-Intel ISP
Lines: 30
Message-ID: <39259C6C.454D4233@mtu-net.ru>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000518113101 DOT 12245I-100000 AT is> <3923BA11 DOT AD387617 AT mtu-net DOT ru> <8g15d8$nl9$1 AT news01 DOT cit DOT cornell DOT edu> <39242D85 DOT 6A95D430 AT mtu-net DOT ru> <8g23d1$6qp$1 AT news01 DOT cit DOT cornell DOT edu> <3924E744 DOT 748FFFEC AT mtu-net DOT ru> <8g31qr$b33$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
NNTP-Posting-Host: ppp105-121.dialup.mtu-net.ru
Mime-Version: 1.0
X-Trace: gavrilo.mtu.ru 958766276 96663 212.188.105.121 (19 May 2000 19:57:56 GMT)
X-Complaints-To: usenet-abuse AT mtu DOT ru
NNTP-Posting-Date: 19 May 2000 19:57:56 GMT
X-Mailer: Mozilla 4.72 [en] (Win95; I)
X-Accept-Language: ru,en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hans-Bernhard Broeker wrote:

[snip]

You're correct and most of others are correct as well. Moreover, I have
almost nothing against of size_t use and use of other types.

> After all: what *is* so bad about size_t in your opinion that makes
> you try to avoid it like the plague?  Using it you'ld have one nasty
> detail less to worry about.

Well, I just figured out a question that I have no answer to. Since size_t
is used to represent objects' sizes and probably some other stuff and fpos_t
is used for file positions, etc etc.

NOTE: size_t is from Borland C. I don't know which types are used for this
in DJGPP/GCC, I use size_t in this message just for _illustrative purpose_.

How do I work with all those types? For example, if file position depends on
a string length, how do I mix those size_t and fpos_t correctly? Isn't it
the same problem as int<->size_t type casting/conversion? size_t and fpos_t
may be represented by integers with different length (in bytes).

Any ideas?
-- 
Alexei A. Frounze
-----------------------------------------
Homepage: http://alexfru.chat.ru
Mirror:   http://members.xoom.com/alexfru

- Raw text -


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