yes. Many modules use the same constant so I don't want to declare each constant seperately in each module as it is not a good idea to modify it later on. For the config file, u mean I should read the value from the file and then keep it in the constant variable?? Is there a way to declare the constant in one module (let say the module that keeps all share constants) and then the other module can see these constants??
To PaulTEG...
You mean set the symbolic link in one module and let the other modules read it??
Legacy of VMS programming
We used logicals (symlinks) to store filenames, and by shelling a process to change the value we could switch between different datasets using the same logicals in the code. Later we used logicals to point to printers, and finally environemnt variables.
The logicals (in VMS) were set in the startup script for the machine, were visible to all processes on the machine with the correct rights.
The symlink might map to a file, but if the constant files are created what odds.
This probably wouldn't work on a Win32 platform, actually on further consideration without serious admin rights to the server it probably wouldn't work at all
Regards
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.