L
Lawrence D'Oliveiro
As explained numerous times then Java generics and C++ templates
are somewhat different.
The only differences arise from limitations of Java, nothing more.
As explained numerous times then Java generics and C++ templates
are somewhat different.
L is an instance of a class. List<String> is an instance of a type, a
type that is distinct from List (the raw type or the class type).
List said:If you're having this much problems understanding me ...
The only differences arise from limitations of Java, nothing more.
See, you cannot even distinguish between “defined†and “implementedâ€.
The only differences arise from limitations of Java, nothing more.
Either Python is a simple language or the language reference is not
very detailed.
I am not sure that comparing a language reference with a standard
spec gives much meaning.
And the C spec leaves a lot of things to implementations.
No. The differences arise from different decisions on what they
wanted.
Possible. But if two template usages are compiled separatetly,
then it is not possible.
Lawrence D'Oliveiro said:The Java designers wanted everything that C++ templates offered.
Lawrence D'Oliveiro said:Exercise for the reader: explain why Arne Vajhøj is wrong. For extra
credit,
list the implicit preconceptions that might have led to such a wrong
conclusion.
Not too much that you can’t write portable code in it.
Lawrence said:Why, what do compilers normally do?
Lawrence said:The fact remains, there IS an equivalent to ClassCastException in C++.
Lew said:"Lawrence D'Oliveiro" spat:
"Exercise for the reader" because the writer couldn't come up with any
logical or reasoned arguments, so he waves his hands and exercises
trollishness instead.
Absolutely correct. It is very easy to write potentially broken C++It is 8086 architecture not 80286 architecture.
Windows has nothing to do with CPU architecture.
And the problem Silvio talks about (undefined sizes) is
not related to segmented memory.
Arne
Writing portable code in C pretty much requires you to do hefty
compatibility layers.
Many projects use typedefs to get proper-sized int variables (you can't
use stdint.h, as MSVC doesn't implement it, as of MSVC 9.0).
Generate source code ...
Heck, they had BigInteger from the outset and could have gone so far as
to include a true numeric tower, implicit conversions all the way up to
BigInteger ...
It is not an assumption about 32 bit architecture. 32 bit
architecture limits it more than the Java rule.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.