- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am wondering why these two attributes are not compatible with each other. For instance, I may want to define a series of constants in a module, and then have various pointers point at them.
It's not really a big deal - the only thing is that not declaring my constants as PARAMETERS leave them exposed to potential (erroneous) change of values by the users of my subroutines in their code.
Thanks,
Olivier
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A PARAMETER is not a variable. It is a "named constant". This is not the same as C's "const". You can't point at a constant. You could declare a variable with an initial value and declare it PROTECTED, but if it was a target that would not prevent the value from being changed.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page