When redeclaring type with prefix T, when look the only type previously that has it, is TDateTime and TGuid.
So a whisper from java come to mine
you know that, but now my colorful lines fade away.
thank you for reminding me
how about Timestamp and UUID, might useful for database specially postgres
Timestamp = TDateTime
UUID = TGuid
so it can be look like native.
my current type collection
Boolean, Boolean8, Boolean16, Boolean32, Boolean64,
NativeUInt, Cardinal, UInt8, UInt16, UInt32, UInt64,
NativeInt, Integer, Int8, Int16, Int32, Int64,
Single, Double, Extended, Currency, Pointer,
for 64 bit using NativeUInt and NativeInt
for 32 bit using Cardinal and Integer
(or full and half size platform)
for Timestamp and UUID I have to experience first.
ByteBool, WordBool, LongBool, QWordBool in mean time I m not using it
ByteBool, WordBool, LongBool range 0 .. -1 unsigned but sign ?
QWordBool -9223372036854775808 .. 9223372036854775807
Now for array, back then still when I was newbie
string is array of char, is it?
[ 3 | a | b | c ]
[ a | b | c | \0 ]
Hey you, yes you, count ! me: sir yes sir, ....... one.
imagine if I said zero, I must have had 100 push up... or you should imagine his face
array just start with zero and string with one ? (newbie).
back to array, naming arrayof for other seem ok, except for byte and char
ArrayOfChar String
ArrayOfByte TBytes
array string
Byte Bytes ByteString
Word Words WordString The computer read UTF16 as word ?
Char Chars String
WideChar WideChars WideString ? diff only in windows use or not ref count
AnsiChar AnsiChars AnsiString
UnicodeChar UnicodeChars UnicodeString
eliminate first
Byte TBytes
Char String
AnsiChar AnsiString UTF8 or just ASCII
UnicodeChar UnicodeString UTF16
How we can read or write Char seamlessly without knowing what kind encoding we use ?
(just use Char, see no Ansi and Unicode.)
while AnsiChar = Char, we cannot use Char as UnicodeChar, may be PChar ?
I would be happy if just use Byte, TBytes, Char, and String
While human use string, computer use bytes, the only thing bytes know is endian war.
or when to pass to network, for encoding in Base64.
TBytes := BytesOf( EncodeBase64( String ) );
String := DecodeBase64( TBytes.ToString );
@kupferstecher yes it's obvious.
Oh my, why just dont computer read a Char ....... ?
"it's not just a Char, it is zWick Char!"