Hm... I think it's interesting that someone shows his/her interest in
functionality similar to 'const'. I believe that adding a similar concept
to .NET has been considered, but maybe it's worth to reconsider it.
My point exactly, Herfried. My original post was how to replicate the
functionality, since VB does have "Const" in some parts of the
language. Since discovering it cannot be replicated in full, it is
certainly a legitimate point to raise concern that this feature should
be added for the numerous benefits I have mentioned. Unfortunately,
since most people have never made use of such features, even when they
are using languages that support them. So, they wouldn't really "get"
why it is so invaluable. I made effort to explain most of the major
reasons pretty clearly (there are more, such as how "const" protects
code from improper changes of OTHER programmers not-in-the-know, or
even yourself 6 months from now when you've forgotten how some
function works). But, it's hard for people to listen when they think
I am attacking their language. I am pointing out its weaknesses,
yes. This is how change begins. I do the same with all languages I
use. I guess, also, you don't miss anything you've never had. I
didn't care that all languages didn't have "const" functionality until
I used it. People here are acting like the old me. But, I listened
when someone said I should be using "const", and I started using it.
In this manner, I stumbled upon how useful it was -- I couldn't
possibly have known every benefit it brought without using it
personally (although most of them were found by listening to others).
I wish you all could share this experience. Maybe that's why
intelligent people have said programmers should learn a new language
every year... I should try that. There's probably tons of things I
am missing that I don't realize, yet.
Zytan