[fpc-pascal] why fpc do not use a known return function value

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Feb 3 10:24:30 CET 2015


On 02/02/15 13:56, misu kun wrote:
> in this program test function has a known return value , and should be
> calculated in compile time , but fpc make it in real time !!!

Constant propagation is a new feature in the upcoming FPC release:
http://wiki.freepascal.org/FPC_New_Features_Trunk#Constant_propagation


Jonas



More information about the fpc-pascal mailing list