Forum > FPC development

[solved] Confusing scope(s) for typed constant

<< < (3/3)

PascalDragon:

--- Quote from: Fibonacci on September 25, 2023, 11:44:09 am ---And in mode Delphi it works exactly like that. Alternative solution is using the modeswitch DUPLICATELOCALS, which IMHO should be default on for mode ObjFpc

--- End quote ---

No, the modeswitch is not default in the FPC and ObjFPC mode by design to avoid issues due to scope shadowing (and these issues do happen).

Navigation

[0] Message Index

[*] Previous page

Go to full version