Search found 3037 matches

by MrSwiss
May 02, 2019 22:33
Forum: Community Discussion
Topic: How to do -g but without assertions?
Replies: 15
Views: 1831

Re: How to do -g but without assertions?

Anyways, an option to disable the -s during linking sounds useful for that. It should probably remain the default for non-debug builds though. Which seems to be different, from what 'vilhelmgray' has implemented currently (inverted logic -Strip). I'd therefore, prefer your approach: -NoStrip, defau...
by MrSwiss
May 02, 2019 21:43
Forum: Projects
Topic: gentext chung text generation based on SORT algorythm
Replies: 12
Views: 693

Re: gentext chung text generation based on SORT algorythm

Well, for PGC, there is:
pcg32rr.bi - minimal PCG32_random_r implementation ( (c) Melissa E. O'Neill )
from myself ... to start off, with (a header only, implementation).
by MrSwiss
May 01, 2019 12:35
Forum: Beginners
Topic: Best Implementation for Set of Elements that I manually change
Replies: 15
Views: 918

Re: Best Implementation for Set of Elements that I manually change

While indexing (1 based) might be simpler to deal with, from a human perspective, it is important to remember, that by default: all indexing operations are: BASE 0 in FB, as is Standard in other languages, e.g. in C. Therefore, my advice would be, to get used to BASE 0, which avoids later confusion ...
by MrSwiss
Apr 29, 2019 22:29
Forum: Beginners
Topic: Best Implementation for Set of Elements that I manually change
Replies: 15
Views: 918

Re: Best Implementation for Set of Elements that I manually change

But still a thousand times faster (if not a million) then the time it takes a human to enter a new name :-) I agree. @TT, You like it far to much, to go a bit off-topic , just to add your 2 cents. Just don't do it, again! (there is no need to redim anything, if you'd have read the initial post, car...
by MrSwiss
Apr 28, 2019 22:22
Forum: Beginners
Topic: Best Implementation for Set of Elements that I manually change
Replies: 15
Views: 918

Re: Best Implementation for Set of Elements that I manually change

@dodicat, since I consider your savefile() to be unsafe (especially, in beginner's hands), I'd wrap it, in order to prevent unwanted "overwriting" of a existing file. A second grief with it is: close without the file number, which closes everything and all open handles (even e.g. serial co...
by MrSwiss
Apr 28, 2019 13:41
Forum: Beginners
Topic: Best Implementation for Set of Elements that I manually change
Replies: 15
Views: 918

Re: Best Implementation for Set of Elements that I manually change

Mostly I want to know if this is the most efficient way to implement the general idea. Yes, however, it is important to keep the code dynamic , for this to work. The points to watch are: ⋅ dynamic array (as opposed to static) ⋅ dynamically sized loop(s) (as opposed to using lite...
by MrSwiss
Apr 25, 2019 22:04
Forum: General
Topic: C to FreeBasic Converter
Replies: 5
Views: 1557

Re: C to FreeBasic Converter

smrutibora wrote:Is there a C to FreeBasic transformation program accessible?
No, there are only Header translators (see previous answers).
Which is sufficient, to use C-libraries (which are thereafter used "as-is").

Converting C-programs is a different story, which must be done "by hand".
by MrSwiss
Apr 22, 2019 20:01
Forum: Beginners
Topic: Sending compiler errors to text?
Replies: 3
Views: 222

Re: Sending compiler errors to text?

JohnM wrote:Would there be any way to have the compiler errors logged to file?

Certainly since, the compiler call is "Command Line":
fbc [options] [file.bas] > fbc_log.txt (new file written, every time)
or
fbc [options] [file.bas] >> fbc_log.txt (appends to file, if it exists)
by MrSwiss
Apr 20, 2019 20:07
Forum: Windows
Topic: Win64: fbGFX "-s gui" exe starts graphics window not on focus
Replies: 6
Views: 559

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

Bug report #898, on Source Forge written ...
by MrSwiss
Apr 20, 2019 12:23
Forum: Windows
Topic: Win64: fbGFX "-s gui" exe starts graphics window not on focus
Replies: 6
Views: 559

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

Looks like a bug. Yes, I agree, the DDraw-Driver (DirectX) hasn't ever worked in WIN64-FBC. According to my tests (which confirm dodicat's findings), the invoked "fallback" mechanism, triggers the "odd" behaviour. If "GDI" is forced, everything is "as expected&quo...
by MrSwiss
Apr 16, 2019 13:25
Forum: Documentation
Topic: Wiki improvements
Replies: 335
Views: 23777

Re: Wiki improvements

jj2007 wrote:"By default, searches are limited to text strings greater than 4 characters".

Not true any longer.
counting_pine changed that to 3 characters, recently ...
(this is in respect to forum search anyway, and not the wiki)
by MrSwiss
Apr 12, 2019 18:12
Forum: General
Topic: Speed issue with string concatenation and a solution
Replies: 14
Views: 616

Re: Speed issue with string concatenation and a solution

speedfixer wrote:A question to the group: ... Could this could dramatically increase string operation speed in most cases?

No, because inside the pool, (a single) string's memory would (at times, at least) require
a re-allocation, when growing the string. (Remember: allocation is per string instance)
by MrSwiss
Apr 12, 2019 17:04
Forum: General
Topic: fbGFX: BUG in Paint statement
Replies: 46
Views: 1859

Re: fbGFX: BUG in Paint statement

You can't just copy from a different sentence (... the addition (blending) of a ...). Is correct. The context there, is different (which impacts grammar!). Even if you reword a bit: ... the resulting (blended) color ... (blending is finished, before you 'have' a result). Grammar is either correct, o...
by MrSwiss
Apr 12, 2019 15:11
Forum: General
Topic: fbGFX: BUG in Paint statement
Replies: 46
Views: 1859

Re: fbGFX: BUG in Paint statement

@fxm,

there has been a grammatical issue introduced, with the last changes:
"the resultant (blending) color" portion, should read:
"the resultant (blended) color" [it is "past tense"]
by MrSwiss
Apr 09, 2019 20:06
Forum: General
Topic: fbGFX: BUG in Paint statement
Replies: 46
Views: 1859

Re: fbGFX: BUG in Paint statement

Done:
Posted on Source Forge: message that bug-report #896, can be declared "closed".

Go to advanced search