Search found 2134 matches

by coderJeff
Oct 20, 2019 1:19
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 52
Views: 8231

Re: Audio library for FreeBasic - Features

Believe me, it works. You could do this: #macro wave(a, b...) wave_##a(b...) #endmacro #macro names are in the global namespace and interfere with every kind of usage. ---- For naming patterns, there are several groups of existing fb functions like Screen*, Image*, File* Regardless, putting all fun...
by coderJeff
Oct 20, 2019 1:06
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 52
Views: 8231

Re: Audio library for FreeBasic - Features

And why make additional inclusions in the form of "# Include"? Why can not you make direct use of sound commands like in gfxlib? All of QB's gfx statements were added by default. And a few new gfx statements were added later. Even then it was noticed that global namespace pollution was go...
by coderJeff
Oct 19, 2019 23:49
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

Continuing my ramblings on bindings and stuff... In case everything else I posted is TLDR; - fbc can natively bind to C code and some C++ code - fbc follows itanium C++ ABI where possible - fbc feeds asm to gnu assembler - fbc feeds C code to gcc (using gcc like as high level assembler). So here's t...
by coderJeff
Oct 19, 2019 23:00
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

Also, I have a question for coderJeff: any plan for generics? There is this work that v1ctor did early 2018: https://github.com/freebasic/fbc/pull/69 I just haven't had time to go through it. I regularly rebase it on current master , though. It has an example of a generic list. Even though it's onl...
by coderJeff
Oct 19, 2019 19:32
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

FB can call a C++ mangled function, but since it didn't know anything about C++ vtables last time I tried it, it couldn't handle any real C++ library where inheritance was used. I think so: for single inheritance only. I haven't tested it much. Here's an example that calls a derived method though a...
by coderJeff
Oct 19, 2019 19:16
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

Continuing... 6) Bindings for C libraries and shared libaries (DLL) With fb's runtime written in C and dependent on C run time library for support, it is necessary that fbc be able to generate code that can bind (link) to C libraries. And with possibility for shared libraries, the binding must follo...
by coderJeff
Oct 19, 2019 17:23
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

To get an understanding of current development it may be helpful to know (review) what has already been done to get a perspective on where we are now. 1) QB Roots Undoubtedly the look and feel of the language is based on QB. In attempt to accommodate the spectrum of users, this has evolved in to 3 d...
by coderJeff
Oct 19, 2019 16:09
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

jj2007, I have much better idea where you coming from, thank-you. To address a couple things specifically: the confusion that gets created around this community's attempts to a) add C++ features, Not specifically C++ features, rather OOP features. I'll come back to this, and give explanation. and b)...
by coderJeff
Oct 19, 2019 13:47
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

I'm going to try and fit in some development discussion. I'll attempt to address some of this in next post. Another language that uses same strategy is D language, and they have decent write up of the reasoning behind the approach. Interfacing to C++ . Does this method allow D to access a fairly com...
by coderJeff
Oct 19, 2019 13:42
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

@MrSwiss. I deleted your post. Unfair? email me: coder@execulink.com.
by coderJeff
Oct 19, 2019 13:14
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

IMHO FB's problem is not that it's BASIC but rather that there are too many C++ developers around who tinker with FreeBasic trying to translate it to some "simpler" version of C++. And they insist that it must work with their personal C++ toolchain. This forum is full of posts asking for ...
by coderJeff
Oct 19, 2019 9:02
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

...(Dodicat, ..)... lol, yes, the list of names looked like that in my head too. Dodicat is super handy to have here. I hope everyone included only by ", .." will not be offended. Please feel free to recognize others. I think the detour is almost over. ---- I had a separate remark to make...
by coderJeff
Oct 19, 2019 9:02
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

A year or two ago, the discussions about improving FB and what to do about lack of maintainers had a lot of people scared and buzzing for awhile, then it all faded and the little bickering came back. Now we have moderators. That's good - but that is the only real change in the community since then....
by coderJeff
Oct 19, 2019 8:14
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

(This series had, I think, expressed my sentiments more clearly than some of my other long-winded posts. And I think I can rest and I will try to not post any more of these too long exhortations. Oh, and this is NOT a complaint or plea to our developers or code submitters. More of the rest of the c...
by coderJeff
Oct 19, 2019 7:15
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

If this/any next version doesn't have some features aimed toward new users or beginners - FB is dead. Then I should save myself a prolonged departure and pack it up now. Because it is not possible for me, alone to implement all the frameworks and features you are speculating should be added. I can'...

Go to advanced search