Search found 16 matches

by coderJeff
Wed Apr 16, 2008 8:53 am
Forum: Freebasic Questions & Answers
Topic: Odd Buffer problem
Replies: 7
Views: 15982

fbc doesn't do overflow checks (even with error checking enabled). The size of the result is same as whatever the largest numeric type is in the (sub)expression. dim as short x, y x = 640 y = 480 print x * y * sizeof( integer ) print cint(x) * y * sizeof( integer ) '' OUTPUT: '' -81920 '' 1228800
by coderJeff
Thu Mar 06, 2008 7:31 am
Forum: Freebasic Questions & Answers
Topic: fblite: -lang deprecated revival
Replies: 6
Views: 13674

SMC, yeah I agree. Except for scoping (and gosub) everything else will generally be the same as .15/.16/.17(dep)/.18(dep). The fblite dialect has been added to the compiler (in SVN), and it's looking solid so far, imo. I checked out OHRRPGCE , which is currently using 0.18.x(deprecated) for their pr...
by coderJeff
Wed Mar 05, 2008 9:06 am
Forum: Freebasic Questions & Answers
Topic: fblite: -lang deprecated revival
Replies: 6
Views: 13674

Thanks, SMC. > Will all the new non-oop stuff be available? Yes, data types (32-bit integer, byte, short, pointers, etc) will be same as fb dialect, plus multithreading, ImageCreate, anonymous types, and all that jazz should work. The main change is to scopes, which makes fblite have the exact same ...
by coderJeff
Tue Mar 04, 2008 2:57 pm
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 66239

coderJeff wrote:As for making "-lang deprecated" a supported dialect, ...
Follow up on this here:
http://www.petesqbsite.com/forum/viewtopic.php?t=2617
by coderJeff
Tue Mar 04, 2008 2:53 pm
Forum: Freebasic Questions & Answers
Topic: fblite: -lang deprecated revival
Replies: 6
Views: 13674

fblite: -lang deprecated revival

A while back I asked what it would take to get users up to date on FreeBASIC. Well, here is a plan for a dialect that the FB Dev-Team would be willing to support long term. Same as fbc-0.15 (or current deprecated dialect) except the following: 1) Proposed dialect name is 'fblite'. To use it, pass '-...
by coderJeff
Thu Jan 24, 2008 1:50 pm
Forum: Freebasic Questions & Answers
Topic: finding out the size of text
Replies: 5
Views: 9563

If there is no fancy cursor stuff and you are using a zstring, you could just set the last character to chr(0), effectively removing the last character, since chr(0) marks the end of a zstring. For example, dim k as string dim buffer as zstring ptr dim n as integer, c as integer const MAX_LEN = 20 b...
by coderJeff
Thu Jan 24, 2008 1:39 pm
Forum: Freebasic Questions & Answers
Topic: Does Deallocate have to be used per case?
Replies: 2
Views: 7323

No, if you are doing your own allocations, you must remember to free the memory for each one. Allocate/Deallocate is not managed in any way.
by coderJeff
Fri Jan 18, 2008 7:55 am
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 66239

Depends on what you mean by updated. In FBIDE, you can choose View | Settings | FreeBASIC and change the location of the fbc compiler, location of the help file, and command options passed to the compiler. As for the IDE itself, I guess the last sources were lost before committed to CVS. See this me...
by coderJeff
Wed Jan 16, 2008 5:30 pm
Forum: Freebasic Questions & Answers
Topic: finding out the size of text
Replies: 5
Views: 9563

SCREENRES always uses 8x8 as the character size. SCREEN uses one of the character sizes in that table (yeah, default should be indicated). The character size is indirectly set with the WIDTH statement. WIDTH() can also be used as a function to get number of columns and rows: SCREEN 13 Dim As Integer...
by coderJeff
Sun Jan 13, 2008 12:57 pm
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 66239

Nodtveidt, thanks for the email. That's the first big test of -lang deprecated I have seen for while. I think we can make some progress from that. Lachie touches on a good point regarding backwards compatibility with libraries: breaks in binary compatibility cannot be undone. burger2227 makes mentio...
by coderJeff
Sat Jan 12, 2008 10:07 am
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 66239

Nodtveidt, that's cool. As for making "-lang deprecated" a supported dialect, there's not much enthusiasm for it from the other FB developers but they are not flat-out saying no either. I don't want to create any false hopes by promising something that can't be delivered, but I think we are all kind...
by coderJeff
Thu Jan 10, 2008 3:51 pm
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 66239

The latest versions of FB have a "-lang deprecated" switch that is supposed to allow older FB sources to compile. I can't guarantee that this will work for you especially coming up from 0.14. Nobody really uses it so not sure the exact state it is in. However, the FB manual has been updated with all...
by coderJeff
Thu Jan 10, 2008 11:41 am
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 66239

DEF SEG is technically possible, but what is missing is the cross-platform emulation layer. (bios data area will be loads of work). More info: http://www.freebasic.net/forum/viewtopic.php?t=10297 I can repsect that some users want to continue using older versions of FB that work for them, but imo ad...
by coderJeff
Tue Jan 08, 2008 10:47 pm
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 66239

dinokilla, if you want to get an idea of the differences between QBasic, QB45, FreeBASIC and its dialects you might find these tables useful: http://www.execulink.com/~coder/fb/docs/fb_compare_keywords.html http://www.execulink.com/~coder/fb/docs/fb_compare_feature.html Each keyword links to the on-...
by coderJeff
Tue Jan 08, 2008 6:25 pm
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 66239

seb, 1 2 3 4 5 6 6 7? Thanks, http://en.wikipedia.org/wiki/BASIC_programming_language burger2227, you are absolutely correct: Want to get a job in programming? *Basic* probably won't help. And yes, FreeBASIC libraries need to be recompiled due to name mangling bugs. Please send your cheques payable ...
by coderJeff
Tue Jan 08, 2008 8:34 am
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 66239

Most of normal QB will compile in FB. Older versions of FB are better for it though, as the compiler's gotten kind of convoluted lately. Below are portions of the compiler change log that specifically target QB compatibility related issues since the addition of "-lang qb" in version 0.17. These upd...