|
Programming and Assembly Language Please read this Topic's rules!! |
![]() |
| LinkBack | Thread Tools | Rate Thread |
| ||||
Should I use global variables (C# code) gizmo here is the source code and a similar discussion about this issue. You remember we had one here (but in an another thread here). Your ideas?
__________________ Last edited by MrSeanKon; 31st October, 2007 at 12:33 PM. |
| ||||
gizmo (you know I came from FORTRAN) therefore any external variable in a class I called it global but actually it is not. To summarize you suggest (as the OCUK members) to use external variables cos the Translation routine must store somewhere its values? These values are used by the other functions.
__________________ Last edited by MrSeanKon; 31st October, 2007 at 12:33 PM. |
| ||||
Ah, ok, now I think I see the source of your question. For what you are doing, the way you've written the code is PROBABLY ok. As a matter of style, if it were me, I'd probably alter the code and make the translation function part of its own class, and make those 'global' variables you are using properties of that class with an accessor function for the purpose of reading the variables. Unfortunately, this would entail a significant rewrite of the code. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Rate This Thread | |
| |
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Global variables: Do you prefer them? | MrSeanKon | Programming and Assembly Language | 8 | 15th November, 2007 12:33 PM |
Windows 2000 server login script and how to set variables | Con | Mobile Devices and Networking | 0 | 9th January, 2003 02:19 PM |
Global Win ????? | SadisticWarrior | Cooling & Temperature Monitoring | 1 | 28th June, 2002 05:49 AM |
Global Win Tak68 | Southern Man | Cooling & Temperature Monitoring | 5 | 13th May, 2002 02:59 AM |
SuSE and environmental variables | Kaitain | OS, Software, Firmware, and BIOS | 1 | 25th March, 2002 03:16 PM |