Interactive shell for trayning FreeBasic ?

The forum for all of your Freebasic needs!

Moderators: Pete, Mods

Post Reply
Posts: 1
Joined: Sat May 03, 2008 9:37 pm

Interactive shell for trayning FreeBasic ?

Post by Cleverson »

Hi all

I'd like to have some kind of interactive shell/command prompt, where i could type a statement and it gets executed imediately, for practicing the FreeBasic language. An example is Python, that has an interactive shell. Have someone developed such thing for FreeBasic? Would be difficult to write one?

Many thanks

User avatar
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Post by Mentat »

I would just use the quick run with FBide.
For any grievances posted above, I blame whoever is in charge . . .
Posts: 132
Joined: Wed Jun 15, 2005 3:01 pm

Post by Antoni »

Python or QBasic have an inmediate mode because they are interpreters.
FreeBASIC is a compiler only. The Quick Run found IDEs as FBIde or FBEdit is the closest you can do with a compiler.
It is not like inmediate mode where variables are kept available for the next command you type. In a compiler Quick run the program runs and terminates, erasing its memory, so everything you want to test or print must be in the code before you launch it.
The code is saved before launched so if you come with something interesting you don't risk to have it lost in the screen buffer...

Doing a FB interpreter mimicking the compiler would require writing another 100000 lines of code, you have to be Microsoft to do that...
Post Reply