On Fri, 22 Oct 2004, Frank Heckenbach wrote:
Probably for this reasone, EP forbids function results in `with' statements at all (6.9.3.10: withelement = variableaccess | constantaccess.). I don't know about other dialects (BP has no records as result types, so the issue doesn't arise. What about Delphi etc.?).
But pointers to records or objects are result types quite often. It seems to me that st. like
with foo(x)^ do ...
is useful in Delphi (or BP or FPC). As I understand it, the EP specification would forbid that too?
At the moment, I'd tend to follow EP here and forbid them at all. Or does anyone think it's really necessary to have them?
For Delphi and FPC compatibility it seems quite useful.
Josef