Search found 603 matches
- Feb 03, 2009 4:18
- Forum: Community Discussion
- Topic: FreeBasic in GCC?
- Replies: 23
- Views: 6391
- Jan 15, 2009 0:01
- Forum: Community Discussion
- Topic: Expanded "IF" Functionality
- Replies: 17
- Views: 4701
When you compare things like if somefn() = a orelse somefn() = b somefn is evaluated twice (as long as its result is not equal to a), which is sometimes not desirable. If we eliminated the need to retype it, you would not be able to see that as clearly in the code. As it is, if you don't want it to ...
- Dec 09, 2008 2:41
- Forum: General
- Topic: Setting EXE information
- Replies: 5
- Views: 1775
- Nov 16, 2008 18:06
- Forum: Community Discussion
- Topic: MOCKUP of FreeBASIC 1.0 Goals
- Replies: 52
- Views: 15778
After reading all this talk of rewriting FB from the ground up, something comes to mind: I've started many (probably >100) projects that never got finished because I decided it would be better to write it in another language, or I couldn't understand the code because I'd been away from it too long, ...
- Nov 16, 2008 17:50
- Forum: Community Discussion
- Topic: Is FreeBasic original?
- Replies: 4
- Views: 2148
- Jun 07, 2008 23:25
- Forum: General
- Topic: A little problem with oop...
- Replies: 7
- Views: 2609
I think there's a valid point here. I personally am in favor of getting rid of all loop statements also, as they are unneeded. Instead, we can replace them with the much more traditional looking (and easier to understand...?) line numbers and GOTO. For example, this (bad) code: for i as integer = 0 ...
- Jan 05, 2008 4:45
- Forum: Beginners
- Topic: Easy WinAPI declaration (like Visual Basic)
- Replies: 6
- Views: 2938
- Dec 30, 2007 4:47
- Forum: Libraries Questions
- Topic: C header conversion, need clarification
- Replies: 5
- Views: 3042
New returns a pointer. You want
Code: Select all
private function cpv( byval x as const single, byval y as const single ) as cpVect
return type<cpVect>( x, y )
end function
- Dec 28, 2007 0:16
- Forum: Libraries Questions
- Topic: porting libraries
- Replies: 9
- Views: 3923
In C, it's defining character constants, not strings. This is correct:
Code: Select all
#define K_BS asc(!"\b")
#define K_CR asc(!"\r")
- Nov 30, 2007 0:21
- Forum: General
- Topic: using const
- Replies: 10
- Views: 3409
integer: Using const variables/parameters doesn't waste any stack space, or any other memory. What it does do is force you not to modify that variable, which is actually very useful because in large projects sometimes you can do things you didn't want to, and it helps the compiler to catch these pro...
- Nov 26, 2007 5:49
- Forum: General
- Topic: Error message for wrong argument type?
- Replies: 2
- Views: 1790
- Oct 30, 2007 3:14
- Forum: General
- Topic: return a function with array
- Replies: 5
- Views: 2428
I added this to the sourceforge tracker a little while ago ( http://sourceforge.net/tracker/index.ph ... tid=693199 ) but as there is an easy workaround already, it's not top priority.
- Oct 30, 2007 3:08
- Forum: General
- Topic: Bug finding game!
- Replies: 6
- Views: 2977