Search found 5557 matches

by counting_pine
Mar 03, 2021 12:53
Forum: Documentation
Topic: String index doc
Replies: 42
Views: 768

Re: String index doc

A reference is basically anything with an address attached to it, such that it can (in theory) be assigned a value. This might be - for example - a variable, array index, or dereferenced pointer. To acknowledge the distinction from an expression without an address (e.g. '2+1'), you might call it an ...
by counting_pine
Mar 02, 2021 11:01
Forum: Documentation
Topic: String index doc
Replies: 42
Views: 768

Re: String index doc

I think putting the words "numeric" and "reference" together can be confusing. The word "numeric" is presumably there to indicate that the value of a character is a number (rather than, say, a 1-character string). But this is unclear because it's in a different part of ...
by counting_pine
Feb 09, 2021 21:13
Forum: Game Dev
Topic: Conway's game of life
Replies: 7
Views: 306

Re: Conway's game of life

I think that you will need to keep the state of arr(,) unmodified until you’ve finished checking for neighbours.
This probably means maintaining a separate copy of the array, or at least the last couple of columns of it (seeing that you are sweeping the array from the left to right).
by counting_pine
Feb 09, 2021 11:08
Forum: Community Discussion
Topic: make bootstrap fails on Debian 10 x86_64
Replies: 2
Views: 157

Re: make bootstrap fails on Debian 10 x86_64

Looks like you searched for the wrong header...
Try installing libgpm-dev.
There's a list of dependencies for Debian at /wiki/DevBuildLinux. If you install all those, that should take care of any missing headers.
by counting_pine
Feb 05, 2021 11:37
Forum: Beginners
Topic: 8-bits per pixel greyscale palette
Replies: 9
Views: 305

Re: 8-bits per pixel greyscale palette

It's fairly easy to set up a grayscale palette in 8-bit mode, using the Palette i, r, g, b syntax.

Code: Select all

ScreenRes(1280, 960, 8)

for i as integer = 0 to 255
  palette i, i,i,i
next i

for x as integer = 0 to 1279
  line (x, 0)-(x,959), x\5
next x

sleep
by counting_pine
Jan 28, 2021 15:37
Forum: Community Discussion
Topic: My_basic interpreter
Replies: 20
Views: 1075

Re: My_basic interpreter

Here's a rough translate of interp() to FB: function interp(sf as FILE ptr, script as ubyte ptr) as integer while true dim as integer code = setjmp(trap) select case code case 1 '' file syntax error if sf <> stdin then return 1 case 2 '' fault opc = pc case 3 '' "BREAK" if opc then pc = op...
by counting_pine
Jan 19, 2021 10:52
Forum: Documentation
Topic: clarification of 'IF' - solved
Replies: 21
Views: 734

Re: clarification of 'IF'

Would the word "immediately" be clearer? For illustration purposes, here is a multi-line IF, with a colon immediately after the THEN: dim as boolean a 'a = true if a then : print "5" : print "again" : end if Or as a more readable multi-line IF using linebreaks: dim as b...
by counting_pine
Jan 13, 2021 14:47
Forum: General
Topic: Why is there a Known Compiler Bug from 2012 still in?
Replies: 19
Views: 975

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

I don’t want to make any assumptions here, but it’s possible that errors with -O2 could be that something in the program is causing Undefined Behaviour, which works as desired in -O1 but not in -O2. Something harder to detect, like a buffer overrun clobbering an important part of memory. (Just specu...
by counting_pine
Jan 11, 2021 11:35
Forum: General
Topic: Why is there a Known Compiler Bug from 2012 still in?
Replies: 19
Views: 975

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

Sorry for the time this bug has cost you. The vectorisation changes were added a long time ago by Bryan Stoeberl, and I don't think he's been around for some time. We should perhaps deprecate the -vec functionality and mark it as unstable/unmaintaned. It's perhaps obsolete now with the gcc emitter, ...
by counting_pine
Dec 31, 2020 10:08
Forum: Documentation
Topic: Wiki improvements
Replies: 565
Views: 108121

Re: Wiki improvements

Mainly just to clean things up a bit I think. At the time, I maybe thought that lang qb users could do with more tailored documentation? I don’t know... I half thought the active/visible page parameters were only available in Lang qb, but it looks like lang fb has its own syntax for that too. Maybe ...
by counting_pine
Dec 20, 2020 19:53
Forum: Community Discussion
Topic: hey all, new programming language support gwbasic,freebasic
Replies: 86
Views: 4807

Re: hey all, new programming language support gwbasic,freebasic

Since there is some interest still in keeping the thread open, I won’t intervene to close it. I don’t think at this time there’s enough uncivility to close it for that reason. From a personal perspective though, it does bother me how closed the project is. It seems like an interesting project, but n...
by counting_pine
Dec 19, 2020 15:13
Forum: Community Discussion
Topic: hey all, new programming language support gwbasic,freebasic
Replies: 86
Views: 4807

Re: hey all, new programming language support gwbasic,freebasic

I’ve noted the complaints against this thread and this software. When I originally downloaded the .7z archive for this project, I couldn’t find any source code for the main program. Has this now changed? If not, I will lock this thread (unless another moderator beats me to it), since it’s blatant mi...
by counting_pine
Dec 07, 2020 14:43
Forum: Game Dev
Topic: Re: List of *FREE* game programming resources
Replies: 8
Views: 650

Re: List of *FREE* game programming resources

Hi, just to say I've split the thread from https://freebasic.net/forum/viewtopic.p ... 31#p270431 to bring all the posts together. Hope that's helpful.
by counting_pine
Nov 30, 2020 13:54
Forum: Community Discussion
Topic: hey all, new programming language support gwbasic,freebasic
Replies: 86
Views: 4807

Re: hey all, new programming language support gwbasic,freebasic

I’d feel much more comfortable about this compiler if it provided its source code. That’s what GitHub is meant for. You should also work out how to use Git properly, not just keep deleting and readding .7z files. Most people will not go to the trouble of downloading and extracting each version to se...
by counting_pine
Nov 14, 2020 18:41
Forum: Documentation
Topic: INPUT edit capacity
Replies: 4
Views: 325

Re: INPUT edit capacity

Command line or graphics or both?

Go to advanced search