Search found 1005 matches

by badidea
Nov 18, 2018 21:17
Forum: Documentation
Topic: How to Replace Any Recursion with Simple Iteration or Unlimited Iteration with its Own Stack, in FB
Replies: 23
Views: 842

Re: How to Replace Any Recursion with Simple Iteration or Unlimited Iteration with its Own Stack, in FB

The compiler error reporting seems to work better this way. The compiler now shows the line where the bug is (in the class implementation). It the first time that I use the namespace keyword, so there might be issues I am unaware of. Edit: There might be a problem with the list of list (previous pos...
by badidea
Nov 18, 2018 17:25
Forum: Documentation
Topic: How to Replace Any Recursion with Simple Iteration or Unlimited Iteration with its Own Stack, in FB
Replies: 23
Views: 842

Re: How to Replace Any Recursion with Simple Iteration or Unlimited Iteration with its Own Stack, in FB

A list of lists. Only the = operator needs to be implemented for the find method to work (in above dyn_list_v02.bi ): Edit: This list of lists needs rethinking. namespace DL_INT #define data_type integer #include "dyn_list_v02.bi" #undef data_type end namespace namespace DL_INT_LI...
by badidea
Nov 18, 2018 13:31
Forum: Community Discussion
Topic: Have anyone an complete updated Freebasic?
Replies: 23
Views: 417

Re: Have anyone an complete updated Freebasic?

I also have an issue with executing from Geany. Apparently it misses a script: 13:43:54: Cannot execute build command "xterm -e "/bin/sh /tmp/geany_run_script_RW2RSZ.sh"": No such file or directory. Check the Terminal setting in Preferences I'm not interested in checking the set...
by badidea
Nov 18, 2018 10:19
Forum: Documentation
Topic: How to Replace Any Recursion with Simple Iteration or Unlimited Iteration with its Own Stack, in FB
Replies: 23
Views: 842

Re: How to Replace Any Recursion with Simple Iteration or Unlimited Iteration with its Own Stack, in FB

I tried something with define and namespace. This way a least only one file for the class: namespace DLINT #define data_type integer #include "dyn_list_v02.bi" #undef data_type end namespace namespace DLSGL #define data_type single #include "dyn_list_v02.bi" #undef data_type end ...
by badidea
Nov 17, 2018 23:17
Forum: Documentation
Topic: How to Replace Any Recursion with Simple Iteration or Unlimited Iteration with its Own Stack, in FB
Replies: 23
Views: 842

Re: How to Replace Any Recursion with Simple Iteration or Unlimited Iteration with its Own Stack, in FB

No problem. Everyone has the right to be inspired by code on the forum (like my first version of user stack) and modify it as it sees fit. Myself, I yesterday modified it, but just to gain speed of execution! (important when we want to replace the execution stack by its own stack) I believe you pos...
by badidea
Nov 17, 2018 9:23
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Jan 2019), 350 $ 1st prize
Replies: 85
Views: 3424

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Jan 2019), 300 $ 1st prize

The difference is is between windows and linux. On windows (correct me if I a wrong), timer gives the time since boot. On linux, the time since 1970.
"Now 1542446489.557956". A single does not have enough 'granularity'.
by badidea
Nov 16, 2018 23:53
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Jan 2019), 350 $ 1st prize
Replies: 85
Views: 3424

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Jan 2019), 300 $ 1st prize

Where are you getting your characters? I looked at horse images and youtube movies with horses for 2 hours and then decided to continue coding with plain circle as the player :-) If I start spending time on fancy graphics now, I'll never get the game done in time and loose interest. If I do the fan...
by badidea
Nov 16, 2018 22:11
Forum: Community Discussion
Topic: Have anyone an complete updated Freebasic?
Replies: 23
Views: 417

Re: Have anyone an complete updated Freebasic?

Geany doesn't work. Geany does not work at all, or not with the FreeBASIC compiler? I have been using Geany on Linux and Windows for FreeBASIC and Python for years now on several system without much problems. All Linux installs Debian/Ubuntu based however. The section "Centos and RHEL"on ...
by badidea
Nov 14, 2018 22:33
Forum: General
Topic: gosub's in functions and subs
Replies: 15
Views: 191

Re: gosub's in functions and subs

dodicat wrote:Yea, both badidea, same result.

Well, I am not the 'macro magician' here :-) So I don't want to figure out why, but it might be an answer to srvaldez's original question.
by badidea
Nov 14, 2018 22:06
Forum: General
Topic: gosub's in functions and subs
Replies: 15
Views: 191

Re: gosub's in functions and subs

dodicat wrote:I cannot get v1ctor's code to work on 64 bit.
win 10.
no messages, just a crash.

Are you trying what I posted, or the original? 'My' version does crash. But not the original here on Linux, fbc 1.05 32 & 64 bit.
by badidea
Nov 14, 2018 21:04
Forum: General
Topic: gosub's in functions and subs
Replies: 15
Views: 191

Re: gosub's in functions and subs

@badidea let's not turn this thread into a debate, properly used goto and gosub can be used to write clear an understandable code. Yes, that is possible. I commented out 'end' in victor codes: '' gosub.bi #ifndef __GOSUB_BI__ #define __GOSUB_BI__ '' GOSUB/RETURN replacement, based on TeeEmCee's set...
by badidea
Nov 14, 2018 20:45
Forum: General
Topic: gosub's in functions and subs
Replies: 15
Views: 191

Re: gosub's in functions and subs

Because it is dirty stuff? I don't understand the purpose of your question, I made that note about using gosub to jump into another sub or function because for one, it's not supported and because it's just plain dirty, but using gosub within a sub or a function could be useful. Maybe it is not 'dir...
by badidea
Nov 14, 2018 20:10
Forum: General
Topic: gosub's in functions and subs
Replies: 15
Views: 191

Re: gosub's in functions and subs

Because it is dirty stuff? Some time ago, I converted some code (GW-/QBASIC) full of gosubs, what a big mess that was.
by badidea
Nov 14, 2018 20:01
Forum: Community Discussion
Topic: Programming game competition! (Christmas theme!)
Replies: 10
Views: 294

Re: Programming game competition! (Christmas theme!)

Many forum members decided to participate the "A Love Letter To FreeBASIC" competition. In conclusion, there are still a lot of FreeBASIC users like to join FreeBASIC's programming competition! (but not the competitions outside the FreeBASIC community.) Yes, but also many seem to do this ...
by badidea
Nov 12, 2018 22:43
Forum: Tips and Tricks
Topic: Multikey key release
Replies: 12
Views: 219

Re: Multikey key release

dodicat wrote:I can use my statevariables for this...

That looks very complicated. I do not understand.

Go to advanced search