Forum > General

Out Parameter - Test program - funny behaviour

<< < (5/5)

Thaddy:
I presented you the proof on a plate. It is not a side effect, it is user error. Now stop this charade.

jc99:

--- Quote from: Thaddy on June 25, 2015, 05:20:59 pm ---I presented you the proof on a plate. It is not a side effect, it is user error. Now stop this charade.

--- End quote ---
Sorry I can't because the proof you gave, proofed ME right. Because the compiler DID gave hints & a warning.
And it outputs the values I'd expect !
So you find it OK when a program compile without any hints, when someone does such an obvious error ?
It' also seems everybody else is OK with functions giving different results, whether they are declared inline or not.
... I wish those a happy debugging-time, I'll use my time for something more useful ...
PS: As I said before. I know how to workaround this. And I will start ignoring the hints, because they are not useful to me.

jc99:

--- Quote from: Thaddy on June 24, 2015, 12:19:22 pm ---It is still true that you are writing bogus code and it is still true that const parameter passing means that that specific parameter should not EVER change value inside of a procedure or function.

--- End quote ---
About your opinion about the const-modifyer:
READ THE WIKI: http://wiki.freepascal.org/const

--- Quote from: ? link=http://wiki.freepascal.org/const ---The declaration const in a Pascal program is used to inform the compiler that certain identifiers which are being declared are constants, that is, they are initialized with a specific value at compile time as opposed to a variable which is initialized at run time.

In some Pascal compilers, the Const declaration is used to define variables which are initialized at compile time to a certain specific value, and that the variables so defined can change as the program executes. This can be used for initializing arrays at compile time as opposed to setting values when the program is executed.

--- End quote ---
So please could you stop YOUR charade !

Navigation

[0] Message Index

[*] Previous page

Go to full version