Forum > Beginners

[Solved] Is it possible to const an argument passed by reference in FPC?

<< < (13/13)

440bx:

--- Quote from: PascalDragon on August 03, 2019, 10:11:54 am ---*rolls eyes*

--- End quote ---
Is that another "very useful" parameter passing convention supported by FPC too ?

munair:

--- Quote from: 440bx on August 03, 2019, 12:27:00 am ---
--- Quote from: ikel on August 02, 2019, 11:55:25 pm ---Then discussion went into untyped... I got lost... :o

--- End quote ---
I suggest _never_ using untyped parameters. 

An untyped parameter implicitly causes the caller to pass any data type by reference since the parameter has no type.  It's one of those "great ideas" from a compiler writer who inhaled too much leaded red paint fumes before reaching the keyboard.

--- End quote ---
:D
This thread was very helpful and inspirational at the same time.

Navigation

[0] Message Index

[*] Previous page

Go to full version