Search found 3613 matches

by MrSwiss
Jan 16, 2021 1:01
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26158

Re: FreeBASIC 1.08 Development

jj2007 wrote:That's what we were discussing on this page.
Again no, since it affects everyone ...
by MrSwiss
Jan 16, 2021 0:33
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26158

Re: FreeBASIC 1.08 Development

Now one remain problem is: could we agree on a basic editor to be added to the 145MB package? No, because only nOObs request that and, they are a dwindling minority, compared to all the others. Who don't have the intent to download anything else, but the pure compiler when it's updated. (They have ...
by MrSwiss
Jan 11, 2021 22:24
Forum: General
Topic: Why is there a Known Compiler Bug from 2012 still in?
Replies: 12
Views: 370

Re: Why is there a Known Compiler Bug from 2012 still in?

Not really certain except: on GCC's website it states that only up to -O 2 is considered 'production code ready'.
Whatever that may mean to say ...
AFAIK, FB-devs also use -O 2 (to compile FB's internal libraries).
by MrSwiss
Jan 11, 2021 22:08
Forum: General
Topic: Why is there a Known Compiler Bug from 2012 still in?
Replies: 12
Views: 370

Re: Why is there a Known Compiler Bug from 2012 still in?

Try it with optimisatioms: -gen gcc -O 2 (capitalized "O", doesn't work with FBIDE!)
Don't use -O 3 (or higher) because then, -vec 2 is back 'in play'.
by MrSwiss
Jan 09, 2021 17:05
Forum: Beginners
Topic: chess game that needs a code review
Replies: 6
Views: 268

Re: chess game that needs a code review

Excuse me saying so, but using "qb" dialect isn't, what I'd consider a translation. (it is "the easy way out" or strictly speaking a "last resort" option, only for "historic" codes) The learning effect is close to zero, if you want to learn coding in current F...
by MrSwiss
Jan 08, 2021 18:54
Forum: Beginners
Topic: chess game that needs a code review
Replies: 6
Views: 268

Re: chess game that needs a code review

Well, not having 'OPTION BASE 1' isn't preventing the use of 1 based arrays. You'll just have to declare them that way: Dim As Long Ch_Board(1 To 8, 1 To 8) ' just as example 2D array Seems to me to be less painfull, than converting everything to BASE 0. Mind you, that I still think it a generally g...
by MrSwiss
Jan 08, 2021 1:49
Forum: Hardware Interfaces / Communication
Topic: 13 Hardware I/O Interfacing tutorials.
Replies: 2
Views: 399

Re: 13 Hardware I/O Interfacing tutorials.

Cool stuff. Thx for sharing.
by MrSwiss
Jan 07, 2021 16:35
Forum: Tips and Tricks
Topic: rotate left/right Functions (overloaded)
Replies: 2
Views: 136

Re: rotate left/right Functions (overloaded)

Hi Vortex, Thanks for the assembly versions. My explicit purposes where: ⋅ avoid inline assembly to avoid portability issues (aka: FB code only) ⋅ incorporate range check and indicate 'argument errors' ⋅ leave 'behind the scenes' stuff to the compiler ⋅ not ha...
by MrSwiss
Jan 07, 2021 3:54
Forum: Tips and Tricks
Topic: rotate left/right Functions (overloaded)
Replies: 2
Views: 136

rotate left/right Functions (overloaded)

Sometimes we are in a position where bit rotation is usefull, but FB has no equivalent. In assembly language there are the rol and, ror statements to do that. The rotate_procs.bi file contains the FB rotl() and, rotr() Functions for: ULong or ULongInt data-types (overloaded and priva...
by MrSwiss
Jan 06, 2021 20:42
Forum: Beginners
Topic: FreeBasic Dependencies, GUI, SQLITE - Ubuntu
Replies: 6
Views: 241

Re: FreeBasic Dependencies, GUI, SQLITE - Ubuntu

Mike Green9 wrote:Does anyone have any examples of code using any of these GUI’s ???
See: IUP GUI lib (Win/Lin) getting started

Mike Green9 wrote:Silly question but how do I access this folder ?? Is it a website you are referring to ??
It's the 'examples' directory/folder in your FBC installation (typically).
by MrSwiss
Jan 04, 2021 15:11
Forum: Windows
Topic: Win64: fbGFX "-s gui" exe starts graphics window not on focus
Replies: 11
Views: 4831

Re: Win64: fbGFX "-s gui" exe starts graphics window not on focus

It is from my point of view illogical, to still use FBC 1.04 for anything any longer. Win XP is 2 decades old -- out of service -- for any serious work. Latest release of 1.07.3 (WIN64 only) fixes all the problems described. Emulators, VM's and the like are more often than not, introducing problems ...
by MrSwiss
Dec 31, 2020 17:31
Forum: General
Topic: No runtime error when accessing an invalid index on an array
Replies: 3
Views: 161

Re: No runtime error when accessing an invalid index on an array

In order to prevent "out of bounds" errors, on array access, there are:
LBound(a) and, UBound(a)
where a, is the array identifier ... (without bounds specifiers!)
by MrSwiss
Dec 17, 2020 14:26
Forum: General
Topic: Help? Replace string throughout code
Replies: 6
Views: 250

Re: Help? Replace string throughout code

Why don't you use the FB data-type that is equivalent to C/C++ int -type: Long (32-bit, fixed size). (or the unsigned variant of it: ULong ) WARNING: using "Integer" can inroduce unexpected errors/bugs in data-structures (mainly). (generally speaking: an old and also bad practice, from the...
by MrSwiss
Dec 15, 2020 15:50
Forum: Community Discussion
Topic: Freedos Question
Replies: 15
Views: 530

Re: Freedos Question

Nope, no code needed, just read what 'requirements' has to say, in FBC-docs (DOS).
by MrSwiss
Dec 15, 2020 15:25
Forum: Community Discussion
Topic: Freedos Question
Replies: 15
Views: 530

Re: Freedos Question

marcov wrote:It is the same with FPC, and there it occasionally is verified.

As you certainly know: "talk is cheap, money buys the whisky". ;-)
Can you provide code that proves your claim?

Go to advanced search