Computer Science Canada Closing Program |
Author: | Prince Pwn [ Thu Oct 19, 2006 8:55 pm ] | ||
Post subject: | Closing Program | ||
I know this code doesn't make any sense but even though I'm giving a variable font values, I'm not graphically printing any strings on the screen so why do all my Turing windows close when I run this? Help appreciated, thx.
|
Author: | Cervantes [ Thu Oct 19, 2006 9:49 pm ] |
Post subject: | |
All other Turing run windows close because you're only able to run one Turing program at a time from within the interpreter. If you were to compile your programs, you'd be able to run those other programs, then run this one, and have the other run windows remain open. |
Author: | richcash [ Thu Oct 19, 2006 10:08 pm ] |
Post subject: | |
If that's what you were asking, then, yes, Cervantes is right. But if it isn't, then I have the same question as you and nice observation. Somehow, the Font.New function is very weird in that it only gets compiled if the screen is set to graphics mode! I don't think the other commands in the Font module have this weird "property". If you run this code in Turing, the Turing editor itself actually closes! Obviously, you can only draw fonts in graphics mode, but you should still theoretically be able to declare a variable using Font.New regardless of the mode of the screen. It's not a big deal, you can't use the fonts in text mode anyways, so why not wait until it's in graphics mode to declare your variables. But still, this is another way to crash Turing. ![]() |