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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to