From: "Alexei A. Frounze" 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: <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 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit 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