Vote UpVote

Delphi and C# compiler oddities

The Wiert Corner – When developing in multiple languages, it sometimes is funny to see how they differ in compiler oddities. Below are a few on const examples. Basically, in C# you cannot go from a char const to a string const, and chars are a special kind of int. In Delphi you cannot go from a string to a char. Delphi program CompilerOddities; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils; type CharAndString = class const A = string('A'); const B = string('B'); const AB = A + B; const IJK = 'IJK'; // automatically a string const X = 'X'; // Unicode/ASCII 88 const Y = 'Y'; ...
Favorite? Off-Topic? jpluimers @ 2013-01-08 06:00


Visits: 908
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)