Search found 2758 matches

by Tourist Trap
May 20, 2019 15:55
Forum: General
Topic: Weird error messages when macros/defines in namespace
Replies: 4
Views: 224

Re: Weird error messages when macros/defines in namespace

Everything is in the documentation: ... So your example above is preprocessed as following: namespace H end namespace ? ? H. ? H. ? Oh thanks. I thought that Namespaces were scoping things. But for that one the message doesn't make too much sense: namespace V #define V ' error 120: Expected period ...
by Tourist Trap
May 20, 2019 15:11
Forum: General
Topic: Weird error messages when macros/defines in namespace
Replies: 4
Views: 224

Weird error messages when macros/defines in namespace

Hello, I really tried to figure out how we are supposed to interpret this: namespace H #define V ? #macro U V #endMacro #macro H 'error 120: Expected period ('.') in '#macro H' '... #endMacro end namespace U 'ok V 'ok H.U 'error 14: Expected identifier, found '?' in 'H.U' H.V 'error 14: Expected ide...
by Tourist Trap
May 20, 2019 14:11
Forum: Community Discussion
Topic: fawlty/idl programming language
Replies: 9
Views: 1628

Re: fawlty/idl programming language

gnuplot does quite well in choosing default values like x and y range and other options to make it easy to use, what I would like to have is the plot functionality of Mathematica in a library, where you can can make a 3d-plot with a simple command like Plot3D[Sin[x + y^2],{x,-3,3}, {y,-2,2}] I use ...
by Tourist Trap
May 20, 2019 11:38
Forum: Community Discussion
Topic: fawlty/idl programming language
Replies: 9
Views: 1628

Re: fawlty/idl programming language

my only complaint is that you can't just embed the functionality into a FB program, if only there were a static library that one could use in ones programs. Scilab has good capabilities for being controled from the command line it seems. Maybe worth a try. I wonder if we could get XCAS do (and retu...
by Tourist Trap
May 19, 2019 11:03
Forum: General
Topic: Need faster Exponentiate
Replies: 32
Views: 1826

Re: Need faster Exponentiate

Did anybody here actually finish Return to castle wolfenstein? You are repaid from your investment for such a longevity :D I can't help, apart for the scene in the mountain at start, I never played tge campaign, only the multiplayer mode (as a medic). Not a bad game, was famous for its flames effec...
by Tourist Trap
May 19, 2019 10:49
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 12242

Re: New array features

Example: ARRAY_SORT or ARRAY.SORT (a namespace is excellent for isolating keywords) (arrayvar) -> sort everything ascending (arrayvar, down) -> sort everything descending (arrayvar, up, 4, 7) -> sort 7 elements ascending, starting at element 4 (arrayvar, @customsortproc, 5) -> sort using a customso...
by Tourist Trap
May 18, 2019 13:43
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 12242

Re: New array features

#define all(X) A, X, 0 'sort the whole array or a given dimension #define ascend AC 'sort ascending #define descend DC 'sort descending #define ascend_ AC, A, 1, 0 'sort the entire 1. dimension ascending #define descend_ DC, A, 1, 0 'sort the entire 1. dimension descending #macro array_Sort(x, t, D...
by Tourist Trap
May 18, 2019 6:44
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 12242

Re: New array features

As far as I know there is plenty of good features that are empowering freebasic on the option 1 basis (simple include file). For example we can take DJ.Peters top quality optional additions like SNC (for networking), and many others as we know. For what I know, it never required a pull request in th...
by Tourist Trap
May 17, 2019 15:19
Forum: Documentation
Topic: How FB supports Sub-Type Polymorphism, demonstrated by Emulation very Close to Real Operating
Replies: 4
Views: 934

Re: How FB supports Sub-Type Polymorphism, demonstrated by Emulation very Close to Real Operating

Thanks fxm!

It reminds me of the tutorial by rdc or maybe someone else that was precisely introducing OOP by emulation from a procedural code (in the documentation's tutorials). I used to love this approach. I will try to run your examples and study this great work you did.
by Tourist Trap
May 17, 2019 15:12
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 12242

Re: New array features

Of course accessing the array elements is a different thing, then we need the type of those elements, but that´s not what we primarily want "VARPTR(array)" for. I can not say if it will be relevant or not to have VARPTR(array) return the array descriptor address. But even if I leave this ...
by Tourist Trap
May 17, 2019 11:22
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 12242

Re: New array features

Fxm´s code is a clever workaround for a missing feature. Currently you can use VARPTR for retrieving a pointer to an array´s elements, but you cannot retrieve the array´s descriptor with VARPTR. I already coded the necessary changes for the compiler to return this pointer with VARPTR: p = @array, o...
by Tourist Trap
May 17, 2019 11:16
Forum: General
Topic: FBComplex - complex number library - 64bit?
Replies: 5
Views: 372

Re: FBComplex - complex number library - 64bit?

. Has anyone used jdebord's "FBComplex: complex number library" with FB 64bit? https://www.freebasic.net/forum/viewtopic.php?f=8&t=19115 I didn't try this for the moment. But just in case, there is this there that does also complex numbers computations: https://www.freebasic.net/forum...
by Tourist Trap
May 16, 2019 14:57
Forum: General
Topic: using gnuplot in Windows
Replies: 13
Views: 658

Re: using gnuplot in Windows

srvaldez wrote:you could do a plot with a simple command like

Nice. Very easy. Thanks for the tip.
by Tourist Trap
May 16, 2019 13:13
Forum: Tips and Tricks
Topic: Thorough search.
Replies: 3
Views: 1096

Re: Thorough search.

Find words in text or binary files in folders . . . Looks very useful, but I fail using it. Is there a type of file searched? First I changed the path with "E:\" then I tried a search of a given string in a .bas, it didn't work, neither .txt. Searching . . . La syntaxe du nom de fichier, ...
by Tourist Trap
May 15, 2019 17:06
Forum: General
Topic: Need help improve my anticheating engine
Replies: 3
Views: 305

Re: Need help improve my anticheating engine

In an example case: An cheater will try to set the Highscore in an game from 1245670 to 99999999 so he simply uses cheatengine, scans the memory for 1245670 and sets this to 99999999. Exactly this will i prevent with any methods and ideas... Ok, thank you :) Now it's clear enough ! but I have no id...

Go to advanced search