[fpc-pascal] const records passed incorrectly
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Nov 16 19:39:34 CET 2009
On 16 Nov 2009, at 18:55, Anthony Walter <sysrpl at gmail.com> wrote:
> I think Delphi should be using actual operators like + * and / instead
> of Add, Multiply, Divide, but then again I think the named results of
> FPC are stranger. What's wrong with using the type in the declaration
> and Result in the implementation?
1) this feature was probably implemented before FPC had a Delphi/
ObjFpc mode and the associated result alias for the function result
2) even then, we'd still want to support this functionality in
standard FPC mode anyway (which does not have this result alias)
For this reason, I think the Delphi operator naming decision is
actually better than FPC's. Limiting them to classes is another matter.
Jonas
More information about the fpc-pascal
mailing list