Fbc 20 Lang Fblite does it better then lang qb !

General discussion for topics related to the FreeBASIC project or its community.
Post Reply
lassar
Posts: 306
Joined: Jan 17, 2006 1:35

Fbc 20 Lang Fblite does it better then lang qb !

Post by lassar »

I have been using fb 18.2

I was using trying out fbc 20.


Trying lang qb. Giving me fits. Errors, etc.


Anyway I tried lang fblite.


With only adding option gosub; it compiled right away without errors !
BigBaddie
Posts: 40
Joined: Oct 10, 2009 10:08
Location: Space
Contact:

Post by BigBaddie »

something to tell you, have you. seeing the fact that QBasic is a language
made atleast twenty years ago, and that FreeBasic is only made five years
ago. QBasic is an OLD language, and at that time. 3D didnt exist, but at
the time FreeBasic was made. 3D Indeed existed, and so FreeBasic was
better than QBasic. get that in consideration, lassar. but if both of these
languages are made at the same time, and the New QBasic is like the
QBasic known now. then FreeBasic is indeed ten times superior!
Antoni
Posts: 1393
Joined: May 27, 2005 15:40
Location: Barcelona, Spain

Post by Antoni »

lang qb was made closer to qb with SINGLE type and pass by reference as default, this dialect can break old FB code easily

the natural dialect to recompile a program made in the old versions of FB is lang -fblite. It's the dialect for lazy coding too.

and finally lang -fb is for classes and big programs that are best maintained by declaring absolutely everything.
counting_pine
Site Admin
Posts: 6323
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Post by counting_pine »

Yeah, the best dialect depends on the program you're writing, and whether you're starting from scratch or porting code from QB or an old version of FB.

Lang qb should be best for porting old QB programs. But for most experienced FB programmers, it is a pain to use because you find half the functionality is missing. You can get some of it back by prefixing some keywords with underscores, e.g. __ptr, but some things are disabled, and a few things might not work properly. You also have to watch out for the 2-byte Integer issue.
Post Reply