1
vote
Vote UpVote

Quick quiz

Delphi Haven – Consider this unit: unit CCR; interface type SysUtils = record const EmptyStr = 'Overridden'; end; implementation end. If the constant on the record type hurts your eyes (or you still use an ancient Delphi version), use this instead – unit CCR; interface type TSysUtils = record EmptyStr: string; end; const SysUtils: TSysUtils = (EmptyStr: 'Overridden'); implementation end. Now, consider this test project: program Project1; {$APPTYPE CONSOLE} uses SysUtils, CCR; begin WriteLn('SysUtils.EmptyStr = "', SysUtils.EmptyStr, '"'); ReadLn; end. Without ...
Favorite? Off-Topic? CR @ 2010-03-09 20:03

Statistics

Visits: 409
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Tier777
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

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