Vote UpVote

Expression Trees: abusing operator overloading for fun and profit

TURBU Tech – Quick, what should this routine produce? procedure Test; var    expr: TExpression;    result: string; begin    expr := 'Value';    expr := expr = 5;    result := expr;    writeln(result); end; There are three basic answers here: Wait, you’re assigning a string to it, and then a boolean comparison against an integer… does that even compile? Well, first you’re assigning a string, then a boolean comparison against an integer, then turning it into a string… well, TExpression must be some sort of thing like ...
Favorite? Off-Topic? Mason Wheeler @ 2014-02-19 02:37


Visits: 837
Votes: 4
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Francis Ruiz
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)