[fpc-devel] Syntax problem with function result

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Jul 28 15:24:44 CEST 2010


Jeppe Johansen schrieb:
[please quote inline]

 >>> I wouldn't miss not having the name of the function as a result
 >>> variable in mode objfpc, at all. I think it would be a valid
 >>> addition, as a compiler directive that was turned on as default, as
 >>> not to break existing code
 >>
 >> It would break the compiler itself.
 >>

> How would it? As I wrote, I suggested that you should be able to disable 
> the function name result variable with a compiler directive. That 
> wouldn't break anything since normal code wouldn't have the compiler 
> directive

It's all okay when the new directive is off, by default, or the actual 
compiler project options (Makefile) turn it off.



> I attached a patch, that works as I suggested

Thanks, I'll check it, and possibly add it to my OO rewrite branch :-)

DoDi




More information about the fpc-devel mailing list