At 1:25 PM +0200 30/4/03, Frank Heckenbach wrote:
`Return' currently needs special syntactic handling, only because it's (optional) argument doesn't have to be enclosed in parentheses (like in C), such as `Return 42'.
The only Pascal dialect (AFAIK) that also supports `Return' is Mac Pascal. Does it work without parentheses there? If not, I suggest to change it in GPC, even if it means a few (trivial) changes in existing code.
No, CW does not require brackets.
In my opinion, using brackets would make the code less clear as it would make it look like a function call which it is not, and since return exits the procedure it is a useful but rather dangerous construct, hiding it by looking like a function would not be a good thing, so unless it is absolutely necessary, please don't make this change.
Thanks, Peter.