Paradox Community

Items in pnews.paradox-dos

Subject:Grrrr dynamic scoping in PAL
Date:Fri, 7 Sep 2018 08:07:03 +1000
From:Bernie van't Hof <>
I can't help but wonder how many incredibly elusive bugs were created due to PAL's dynamic scoping
(globals, privates, 
usevars etc) ...

It is often not obvious where a variable's value came from, could be multiple places depending
on flow.

Looking back, it just seems ridiculous, and is generating a bit of extra work for me!

OTOH I guess it was only a couple of years ago that javascript addressed a similar problem by
introducing 'let' and 'const'.

- Bernie

Copyright © 2004