Topic: Fixed size types and grammar


Author: none <none@noreply.com>
Date: Mon, 23 Jul 2001 19:22:31 GMT
Raw View
What are the real advantages to ambiguous grammar
and types with implementation defined sizes ?

Does Java suffer for its well defined grammar and
fixed sizes of primative types ?

If its not a significant penalty, why not make the
above changes and make the programmers job easier ?

Thanks.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]





Author: Pete Becker <petebecker@acm.org>
Date: Mon, 23 Jul 2001 21:24:21 GMT
Raw View
none wrote:
>
> Does Java suffer for its fixed sizes of primative types ?
>

Yes. char is fixed at sixteen bits, but Unicode has grown from 16 to 21
bits. Java has a problem.

--
Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]





Author: Francis Glassborow <francis.glassborow@ntlworld.com>
Date: Mon, 23 Jul 2001 22:57:11 GMT
Raw View
In article <9_Y67.127221$qs5.19384755@news02.optonline.net>, none
<none@noreply.com> writes
>What are the real advantages to ambiguous grammar
>and types with implementation defined sizes ?
>
>Does Java suffer for its well defined grammar and
>fixed sizes of primative types ?

Well the real prize example is in its decision to have a 16-bit char and
use Unicode. The Unicode standard moved the goalposts:)
>
>If its not a significant penalty, why not make the
>above changes and make the programmers job easier ?

Because it is a significant penalty, not for most but for some platforms
(and on those platforms the JVM pays the price and the programmer has no
way to avoid it)


Francis Glassborow      ACCU
64 Southfield Rd
Oxford OX4 1PA          +44(0)1865 246490
All opinions are mine and do not represent those of any organisation

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]