Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Not widely known problem in programming? (Developers)

posted by bretjohn Homepage E-mail, Rio Rancho, NM, 29.03.2021, 23:02

I don't think a compiler is going to help much in this case. You've set up "message" as a global variable, but then equate it to a variable inside a local procedure called "s" so "s" and "message" are really the same thing. When "s" disappears, so does "message". So, while "message" appears to be global it really isn't. I'm not sure any kind of debugger/troubleshooter can catch things when you have pointers and redirection like that.

That is simply bad programming practice.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 135 users online (0 registered, 135 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum