Delphi 2007 Handbook




Essential Pascal




social web book








November 21, 2007

Handbook Note 42/113: Reusing Keywords

Note 42 of 113 of Delphi 2007 Handbook

Note 42 (commenting the "class operator" keyword used to define overloaded operators for records, covered at page 102) : By reusing existing reserved words, CodeGear managed to have no impact on existing code. This is something they've done quite often recently: strict private, class operator, class var...

This blog post is part of my "113 Delphi 2007 Handbook Notes" blogging project, to promote my new Delphi book.





 

2 Comments

Handbook Note 42/113 Reusing Keywords 

"Strict" isn't a keyword -- it's just a directive
(i.e., special meaning only in certain code
constructs). So its addition could have broken code
that had an instance field called "strict". (Granted,
you'd have to violate the convention of prefixing
fields with "F" to run afoul of this.)

"Operator" also isn't a keyword, though since it has
to follow "class", its addition would not have broken
any existing code.
Comment by Joe White [http://www.excastle.com/blog/] on November 22, 01:49

Handbook Note 42/113 Reusing Keywords 

I stand corrected!
Comment by Marco Cantù [http://www.marcocantu.com] on November 22, 15:39


Post Your Comment

Click here for posting your feedback to this blog.

There are currently 0 pending (unapproved) messages.