English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 16 February 2019, 14:57   #1
MickGyver
Registered User
 
MickGyver's Avatar
 
Join Date: Oct 2008
Location: Finland
Posts: 643
Longer lines of code in SuperTED?

Is it possible to increase the number of symbols possible on a line in SuperTED? It seems the "default" maximum is 128 symbols/columns. I use version 2.52.

(I like to use descriptive constants and they quickly make code lines too long.)
MickGyver is offline  
Old 17 February 2019, 10:24   #2
E-Penguin
Banana
 
E-Penguin's Avatar
 
Join Date: Jul 2016
Location: Darmstadt
Posts: 1,213
Variable names should be single characters. Nobody needs more than 26 of them in any program.
E-Penguin is offline  
Old 20 February 2019, 22:20   #3
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
I remember in the 8-bit BASIC days, the programming books actually *encouraged* single-letter variable names in order to save RAM. Which of course I explained to my coding lecturer in Uni... while coding compiled programs... In C

Anyway, to answer the OP, I'm afraid the maximum in all versions of Ted seems to be 128 characters. Depending on what you're doing, you could build up your statement over a couple of lines. That's hardly ideal though. AmiBlitz 3 allows 255 characters, and also allows you to join lines together if they are too long to fit, but I think having such lines in your code will cause problems if you want to bring the code back into Blitz 2.1.
Daedalus is offline  
Old 21 February 2019, 11:38   #4
MickGyver
Registered User
 
MickGyver's Avatar
 
Join Date: Oct 2008
Location: Finland
Posts: 643
Quote:
Originally Posted by E-Penguin View Post
Variable names should be single characters. Nobody needs more than 26 of them in any program.
Righty-O!

Quote:
Originally Posted by Daedalus View Post
I remember in the 8-bit BASIC days, the programming books actually *encouraged* single-letter variable names in order to save RAM. Which of course I explained to my coding lecturer in Uni... while coding compiled programs... In C

Anyway, to answer the OP, I'm afraid the maximum in all versions of Ted seems to be 128 characters. Depending on what you're doing, you could build up your statement over a couple of lines. That's hardly ideal though. AmiBlitz 3 allows 255 characters, and also allows you to join lines together if they are too long to fit, but I think having such lines in your code will cause problems if you want to bring the code back into Blitz 2.1.
Thanks for clarifying! I'll manage, had to ask if it would be possible to increase the row width somehow.
MickGyver is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
SuperTed 2.5 Predseda Coders. Blitz Basic 7 10 January 2020 21:33
SuperTED 3.0 sources idrougge Coders. Blitz Basic 0 04 September 2016 14:24
SuperTed 2.6 idrougge Coders. Blitz Basic 6 27 February 2016 15:59
SuperTed - New game for the Amiga released (2014/11/22) hipoonios News 26 20 July 2015 22:29
Diagonal Lines on TV eva support.Hardware 7 24 April 2015 13:38

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:26.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11249 seconds with 15 queries