On Sat, 17 Apr 2004, Eike Lange wrote:
- April 2004 13:03 schrieb Prof A Olowofoyeku (The African Chief):
Delphi (at least, from from version 2.0 onwards) allows routines that take no parameters to be called with empty brackets appended (e.g., "foo();"), much like C requires. See the test program below. GPC does not allow this. Is there any chance of supporting this in GPC? This program is valid in Delphi, but not in GPC ... begin foo (); end.
What would you think about using braces instead? begin foo {}; end.
I don't think, we should support C-style routines.
Eike
-- ::NETZ-STREIK:: http://www.gnushi.de/ ::NETZ-STREIK::
Since braces are used for comments, I don't think they should be used for anything else.
Since GPC already has a large degree of Borland compatibility, it makes sense to support the empty parentheses in the manner of Delphi if it's easy to do and doesn't break one of the established standards; It can always be disabled in strict mode.
-------------------------| John L. Ries | Salford Systems | Phone: (619)543-8880 x25 | (760)765-4738 | Cell: (760)445-6122 | -------------------------