Search found 1931 matches

by coderJeff
Jun 16, 2019 18:43
Forum: Documentation
Topic: Wiki improvements
Replies: 335
Views: 23564

Re: Wiki improvements

I think the main point of bug report #832 was that fbc should error on suffixes used where they shouldn't be, like on keywords. However, this is still allowed by fbc (even with the "fix"): #lang "fblite" if$ 1 then% print! end if For other use of suffixes in "-lang fb",...
by coderJeff
Jun 16, 2019 18:11
Forum: Community Discussion
Topic: Extending Wstring and Zstring with UDTs
Replies: 24
Views: 1238

Re: Extending Wstring and Zstring with UDTs

Add changes for SWAP , SELECT , and IIF IIF(expr, ture-expr, false-expr) uses a similar approach as SWAP . If one or the other is a UDT that can be converted to Z|WSTRING, it will do so, otherwise, no conversion and normal IIF logic remains. This feature pull request user defined types can e...
by coderJeff
Jun 09, 2019 23:58
Forum: Documentation
Topic: Wiki improvements
Replies: 335
Views: 23564

Re: Wiki improvements

My comments so far are only about changing the meaning of the array descriptor structure. We still need to do something with it, generating different code in the compiler and/or implementing different behaviour in the rtlib. So maybe will have other new bugs or crashes not yet realized due to linkin...
by coderJeff
Jun 09, 2019 23:39
Forum: General
Topic: Squares
Replies: 6589
Views: 373153

Re: Squares

It is impossible to figure out. This will be true for all combinations of bit patterns (dictionary), where at least one bit pattern (word) forms the beginning of another bit pattern (word). In your case using 0, 01, 10, 11, the "0" can be found at the beginning of "01", so there ...
by coderJeff
Jun 09, 2019 17:45
Forum: Documentation
Topic: Wiki improvements
Replies: 335
Views: 23564

Re: Wiki improvements

JK, you have the right ideas. Regardless, it's still a binary compatibility break. It's probably not as bad as I make it out to be, that's just the attitude I must have going in to it, preparing users for the worst. fbc itself, IIRC, mostly static arrays are used like lookup tables. There are a few ...
by coderJeff
Jun 09, 2019 15:48
Forum: Documentation
Topic: Wiki improvements
Replies: 335
Views: 23564

Re: Wiki improvements

Fix for #893 Typo in error message 148 is now merged in to fbc/master. Thanks, fxm. Do you mind having a look at: #455 Number lexing allows much bad input #491 precision denotation suffix char returns syntax error I think parts of those bug reports could be resolved by verifying or adding to documen...
by coderJeff
Jun 09, 2019 2:32
Forum: General
Topic: Squares
Replies: 6589
Views: 373153

Re: Squares

Infinite* scrolling maze: it never ends! WASD to scroll SPACE to restart ESCAPE to exit. Recursion and backtracking to generate maze with animated construction. #include once "fbgfx.bi" const SCREEN_W as integer = 640 const SCREEN_H as integer = 480 const WALL_W as integer = 2, HALL_W as i...
by coderJeff
Jun 08, 2019 21:53
Forum: General
Topic: Squares
Replies: 6589
Views: 373153

Re: Squares

@coderJeff ' words(0) = "0" ' words(1) = "10" ' words(2) = "110" ' words(3) = "111" Doesn't compress .... Exactly... well compressed data looks a lot like random data. Albert, you are missing the point: Given the dictionary is 00, 01, 10, 001 from your earlie...
by coderJeff
Jun 08, 2019 21:22
Forum: General
Topic: Squares
Replies: 6589
Views: 373153

Re: Squares

if n1="00" then outputs+="00" if n1="01" then outputs+="01" if n1="10" then outputs+="10" if n1="11" then outputs+="001" Dude, you keep changing your post! Duplicates: "11 11" => "001001" "00 10...
by coderJeff
Jun 08, 2019 21:17
Forum: General
Topic: Squares
Replies: 6589
Views: 373153

Re: Squares

Albert, fascinating, such a distraction for me thanks :). I should really unsubscribe this topic... if n1="00" then outputs+="1" if n1="01" then outputs+="10" if n1="10" then outputs+="011" if n1="11" then outputs+="010"...
by coderJeff
Jun 08, 2019 18:48
Forum: Community Discussion
Topic: FreeBASIC-1.06.0-Win gcc-9.1
Replies: 25
Views: 559

Re: FreeBASIC-1.06.0-Win gcc-9.1

I knew last year that would have to address it soon anyway. It would be helpful if the experts in the community can weigh in and give their recommendations. I try my best to know about the dos/linux/win targets, however, I also know that there are members in the community that know more than me. I t...
by coderJeff
Jun 08, 2019 18:03
Forum: Community Discussion
Topic: Extending Wstring and Zstring with UDTs
Replies: 24
Views: 1238

Re: Extending Wstring and Zstring with UDTs

@JK, doesn't matter if it is your "ustring.bi" or some other user's own creation, fbc needs to do something reasonable. I agree, the feature need not be fully complete or fully optimized, only that I would like to leave myself a possibility for future that isn't going to make users outrigh...
by coderJeff
Jun 07, 2019 1:20
Forum: Community Discussion
Topic: Extending Wstring and Zstring with UDTs
Replies: 24
Views: 1238

Re: Extending Wstring and Zstring with UDTs

The reason I'm not completely convinced on SWAP, is that it is kind of like an assignment. To compare, with STRING descriptors, fbc implements an efficient SWAP mechanism, by swapping only the descriptors, exactly like swapping a UDT, without actually swapping the data that is pointed to. If SWAP un...
by coderJeff
Jun 07, 2019 0:52
Forum: Community Discussion
Topic: FreeBASIC-1.06.0-Win gcc-9.1
Replies: 25
Views: 559

Re: FreeBASIC-1.06.0-Win gcc-9.1

What you have shown, srvaldez, is pushing the 'boat out' has not brought the roof down and the question must be asked why does gcc 5.2 seem to be carved in stone, the fbc 1.06 release was a golden opportunity to 'up the stakes'; not to version 9 but something greater than version 5. I don't know th...
by coderJeff
Jun 07, 2019 0:15
Forum: Community Discussion
Topic: FreeBASIC-1.06.0-Win gcc-9.1
Replies: 25
Views: 559

Re: FreeBASIC-1.06.0-Win gcc-9.1

So, where does 'strip' come from, that is not mentioned in the Help file's 'Compiler Options.'? -strip used to be called by default, but for some reason, something changed in the recent Git repo. you can of course see all the command options with: fbc -h wiki is most up to date docs for current dev...

Go to advanced search