Disallow redefinition of built-in constants inside a module

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Little John
Addict
Addict
Posts: 4779
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Disallow redefinition of built-in constants inside a module

Post by Little John »

Please disallow redefinition of built-in constants inside a module.

Currently, redefinition is allowed. But when trying to use such a constant outside of the module, a somewhat confusing error message is raised.

The situation would be clearer, if at the line of the constant definition in the module an error message such as "You cannot redefine a built-in constant." would be raised.

see http://www.purebasic.fr/english/viewtop ... 13&t=62591