Search found 2770 matches

by MrSwiss
Oct 25, 2018 14:00
Forum: General
Topic: Bernard Widynski's Middle Square Weyl Sequence RNG (MsWs)
Replies: 106
Views: 1559

Re: Bernard Widynski's Middle Square Weyl Sequence RNG (MsWs)

Quick & dirty ULongInt generator, using Mersenne Twister ... ' may NOT work (without warnings) in FBC 32 ' only FBC 64 tested! Randomize(Timer, 3) ' Mersenne Twister (FB internal) For n As UInteger = 1 To 50 ' 300 call's (warm up) Rnd() : Rnd() : Rnd() : _ Rnd() : Rnd() : Rnd() Next Function ran...
by MrSwiss
Oct 22, 2018 13:36
Forum: Community Discussion
Topic: my best effort
Replies: 115
Views: 2977

Re: my best effort

In the declaration syntax, the name of each parameter passed is not mandatory, but I think it is better to also specify it because it clarifies the procedure use (obviously if the name of the parameter is chosen wisely). I disagree on the ground of: code maintainability . The declaration is solely ...
by MrSwiss
Oct 17, 2018 13:40
Forum: General
Topic: Fast random integers
Replies: 49
Views: 907

Re: Fast random integers

Above is one of the exceptions, where data-type 'integer' fits the bill: ' here: the correct use of type 'integer': 4 byte (FBC32), 8 byte (FBC64) SwitchBufferCriteria = Cast(Integer, ptrBuffer) + BufferSize ' can be written shorter ... using CInt(), instead of Cast() SwitchBufferCriteria = CInt(ptr...
by MrSwiss
Oct 15, 2018 17:45
Forum: General
Topic: Declaring a Macro as global
Replies: 8
Views: 161

Re: Declaring a Macro as global

The simplest method, I'm aware of is:
put the Macro straight into the MAIN-code-file ... (Prj_MAIN.bas),
that makes it GLOBAL (to all the other included files also).
by MrSwiss
Oct 15, 2018 13:12
Forum: General
Topic: Where have I gone wrong
Replies: 192
Views: 4554

Re: Where have I gone wrong

@grindstone, a really bad idea, to advice on a library, that is non-free, for commercial use: ' Free for NON-comercial use! For comercial usage send me a mail -> FreeBasic[at]DeltaLabs.de , in the header of TSNE_V3.bi ... Also, due to it's age, probably only FBC32 (referres version 0.18.5 of compile...
by MrSwiss
Oct 14, 2018 13:09
Forum: Projects
Topic: FreeBASIC IDE with enhanced debugging and project features
Replies: 37
Views: 3198

Re: FreeBASIC IDE with enhanced debugging and project features

There seems to be a problem with some versions of the include files. The IDE expects all included files to have CR-LF line ends. CR or LF alone will cause malfunction. No, the problem (in this case) is the erroneous assumption, that line endings are M$ specific (which they are clearly not in FB, be...
by MrSwiss
Oct 11, 2018 13:15
Forum: General
Topic: GCC FDO
Replies: 5
Views: 186

Re: GCC FDO

Do you have the profiler (gprof) installed?
by MrSwiss
Oct 10, 2018 13:26
Forum: Community Discussion
Topic: New website
Replies: 37
Views: 4319

Re: New website

Yes, I also want to second, what's been stated so far: fxm / bcohio2001. And, I have a additional request: Please, get the [tt]-button to work again, as it did in the previous design: MONO-SPACED-FONT (tt = tele-type style) Which was really usefull, to explain coding mistakes (inside flowed text), w...
by MrSwiss
Oct 08, 2018 16:55
Forum: Community Discussion
Topic: Would anyone find a FreeBASIC vs JavaScript side-by-side series useful (+is it allowed here)?
Replies: 24
Views: 790

Re: Would anyone find a FreeBASIC vs JavaScript side-by-side series useful (+is it allowed here)?

This is an answer, to your question: NO (get out, it's: OFF TOPIC)

In case you've not noticed:
I consider it a: divide and conquer attempt (to use gaming language)!
(Like Lachie D. with FBGD, tried to do. Please, don't bother to answer.)
by MrSwiss
Oct 08, 2018 16:07
Forum: Community Discussion
Topic: Would anyone find a FreeBASIC vs JavaScript side-by-side series useful (+is it allowed here)?
Replies: 24
Views: 790

Re: Would anyone find a FreeBASIC vs JavaScript side-by-side series useful (+is it allowed here)?

Pritchard wrote:Having a thread be called pointless is a bit frustrating.
Just as much, as your recent threads/comments on this forum are, for others? (hopefully!)
by MrSwiss
Oct 07, 2018 17:41
Forum: Beginners
Topic: Importing C code into a FreeBasic program
Replies: 4
Views: 331

Re: Importing C code into a FreeBasic program

Just remember that C arrays start at 0 and FB arrays start at 1 ... This is definitely NOT correct , FB arrays by default start with 0 (same as C) unless, explicitly specified as: array( 1 to n). The difference is: in C the number specifies the number of elements, whereas in FB, you are defining th...
by MrSwiss
Oct 06, 2018 15:57
Forum: Community Discussion
Topic: Breaking NEWS (affecting all of us)
Replies: 4
Views: 330

Re: Breaking NEWS (affecting all of us)

dodicat wrote:Strangely enough I get a popup ...

There is a simple remedy, to related problems:
Install: NoScript *browser plugin* (I'm using FireFox).
Thereafter, the script starting the popup is simply *not allowed* to run.
Problem solved. (default setting in NoScript)
by MrSwiss
Oct 06, 2018 15:15
Forum: Community Discussion
Topic: Breaking NEWS (affecting all of us)
Replies: 4
Views: 330

Re: Breaking NEWS (affecting all of us)

Tim Berners-Lee, Director of the World Wide Web Consortium (W3C).
On: the Internet, for everyone, titled: One Small Step for the Web …
published: 2018-09-29, on Medium
by MrSwiss
Oct 06, 2018 15:09
Forum: Community Discussion
Topic: Breaking NEWS (affecting all of us)
Replies: 4
Views: 330

Breaking NEWS (affecting all of us)

Is it a Chinese, Government sponsored Attack, on the rest of the World?
Read the Article: The Big Hack
published: 2018-10-04, by Bloomberg Buisnessweek
by MrSwiss
Oct 05, 2018 14:42
Forum: Beginners
Topic: Some beginner questions
Replies: 5
Views: 414

Re: Some beginner questions

Since I can't decipher, to what your question is referring to ... (this ???)
Have a look at the FreeBASIC-Manual.

It is far better to 'spell it out' in detail, if you are expecting a decent answer,
that is relevant to the question. (See the opening post, of this thread!)

Go to advanced search