Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Closing Program
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Prince Pwn




PostPosted: 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.

code:

View.Set("text")
var font : int := Font.New ("comic sans ms:20")
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Thu Oct 19, 2006 9:49 pm   Post subject: (No 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.
richcash




PostPosted: Thu Oct 19, 2006 10:08 pm   Post subject: (No 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. Rolling Eyes
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: