[fpc-pascal] Seems Delphi is moving to Java-style primitive types

Chad Berchek ad100 at vobarian.com
Thu Oct 18 04:00:10 CEST 2012


> It actually uses record helpers, but the end result looks very much like
> Java primitive types where you have <type>.ToString, <type>.Equals,
> <type>.Split etc...

Not with the intent to be contrary, but for the sake of clarity in 
discussion, String in Java is not a primitive type; it is a full-fledged 
class like any other except the compiler has a couple pieces of special 
knowledge about it. That is why it can have methods. The actual 
primitive types such as short, int, long, etc., do not have methods. 
However, this must not be confused with the boxed form of the primitive 
types, which again are full-fledged classes (Integer, Long, etc.) and 
have methods.



More information about the fpc-pascal mailing list