Search found 2403 matches

by coderJeff
Jan 23, 2021 22:18
Forum: General
Topic: Why is there a Known Compiler Bug from 2012 still in?
Replies: 19
Views: 972

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

... this code fails and crashes under "-gen gcc -O 1" (and -O 2 / -O 3) I found a bug that is related to float to integer conversions in the gcc backend. For float/integer conversions fbc will generate an inline C function something like the following: static inline int32 fb_F2I( float va...
by coderJeff
Jan 23, 2021 21:31
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30326

Re: FreeBASIC 1.08 Development

Would it be possible for this new release to include constants for FreeBasic's data type limits (akin to C's limits.h ) as an include file? Simple, yet very useful. It's on my wish list. hIsConstInRange() There's quite a few places in the compiler code and test suite where it would be clearer to wr...
by coderJeff
Jan 18, 2021 13:44
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30326

Re: FreeBASIC 1.08 Development

I've moved a number of posts discussing WinFBE, installers and packages over to Slim FreeBasic installer for Windows. Hopefully I didn't fragment the discussions too much.
by coderJeff
Jan 18, 2021 13:05
Forum: Community Discussion
Topic: Slim FreeBasic installer for Windows
Replies: 49
Views: 1670

Slim FreeBasic installer for Windows

No problem here. I extracted the .rar file for WinFBE and the ide+compiler ran straight off. Same. No problem here extracting the original .rar package. Thanks, that did the trick. So what happened? Look like WinFBE creates some files like 'Settings/WinFBE.ini' and configures them on first time use...
by coderJeff
Jan 17, 2021 23:58
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30326

Re: FreeBASIC 1.08 Development

Going back to a couple earlier points... Here's my 2 cents... Paul Squires / Xusinboy please correct me if I get this wrong... WinFBE and VisualFBEditor are both good looking programs and the code base looks good - like written by professionals. Both the IDE and framework are written completely in f...
by coderJeff
Jan 16, 2021 4:05
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30326

Re: FreeBASIC 1.08 Development

Let's assume for a moment that we're talking about a person that is new to FreeBASIC, and also that the goal is to get this new user up and running having the least amount of knowledge possible. Maybe they are new to programming also ... it doesn't matter if we just talking about getting a program a...
by coderJeff
Jan 16, 2021 3:18
Forum: Documentation
Topic: Basic-Macros in fbc 1.08
Replies: 59
Views: 4275

Re: Basic-Macros in fbc 1.08

'__FB_ARG_EXTRACT__(index, args...)` is merged in now to fbc/master now. It all depends if we consider that changelog.txt is: - only a synthesis of the modifications compared to the previous fbc version, - or otherwise as a logbook of the working version evolution. I was thinking of it as a comparis...
by coderJeff
Jan 15, 2021 4:43
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30326

Re: FreeBASIC 1.08 Development

The great thing about having these discussions in the forum is that anyone can weigh in. But there's no scale for how much weight a post should have with readers. Last serveral posts have some good points, but in some posts the presentation is clumsy and don't do much for the project or the communit...
by coderJeff
Jan 15, 2021 4:00
Forum: Documentation
Topic: Basic-Macros in fbc 1.08
Replies: 59
Views: 4275

Re: Basic-Macros in fbc 1.08

This seems to work for me using the code from your post. #macro PRINT_LAST(args...) #define LAST_ARG_NUM __FB_EVAL__(__FB_ARG_COUNT__(args)-1 ) #print __FB_ARG_EXTRACT__(LAST_ARG_NUM, args) #endmacro PRINT_LAST(7, 89.78, "Postman", 0) This is a much better example of how '__FB_EVAL__' can ...
by coderJeff
Jan 14, 2021 2:19
Forum: General
Topic: Pentacles
Replies: 56
Views: 3168

Re: Pentacles

Not having this ... again.
by coderJeff
Jan 13, 2021 23:06
Forum: Documentation
Topic: Basic-Macros in fbc 1.08
Replies: 59
Views: 4275

Re: Basic-Macros in fbc 1.08

Thank-you for the updates on the docs.
We are probably OK on the changelog.txt, these basic-macros are still new to 1.08.0. I can update the changelog to show the sytaxes though.
by coderJeff
Jan 13, 2021 23:03
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30326

Re: FreeBASIC 1.08 Development

marcov, I agree with everything you say, and I don't think I've ever put down FPC or claimed that FB is better than FPC. I get a weird vibe from your last post that you are trying to change my mind ... but I already agree with you. My responses are as plain and open as possible, but I think I see wh...
by coderJeff
Jan 13, 2021 1:02
Forum: Documentation
Topic: Basic-Macros in fbc 1.08
Replies: 59
Views: 4275

Re: Basic-Macros in fbc 1.08

Cool! You're at least half-way there now, you might as well keep going :) I like the name '__FB_ARG_EXTRACT__' It's neat to see a similar pattern in the solution as I did goof around with it for a bit: private function hDefArgGet_cb( byval argtb as LEXPP_ARGTB ptr, byval errnum as integer ptr ) as s...
by coderJeff
Jan 12, 2021 21:46
Forum: Documentation
Topic: Basic-Macros in fbc 1.08
Replies: 59
Views: 4275

Re: Basic-Macros in fbc 1.08

If there a way to make LEFTOF & RIGHTOF either return nothing and not complain when sep isn't found, or to just return the whole of their input? How about this? __FB_ARG_LEFTOF__( expr, sep [, ret] ) __FB_ARG_RIGHTOF__( expr, sep [, ret] ) by default, if 'ret' is not given retur...
by coderJeff
Jan 11, 2021 22:31
Forum: General
Topic: Why is there a Known Compiler Bug from 2012 still in?
Replies: 19
Views: 972

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

And you may be right about other sse optimization bugs still being in, even without -vec 2. I think warning the user in docs and '-help -v' is still not a bad idea. To not have it completely dropped, the bug reports do really help. And if you want to help out the project narrowing down the test cas...

Go to advanced search