Search found 230 matches

by Juergen Kuehlwein
Oct 22, 2019 21:16
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 4
Views: 163

Re: How to add new features? (syntax, user API)

- "array.sort" looks too much like object syntax to me, not so much like (procedural) BASIC syntax. Maybe i´m a traditionalist. - second reason is, that you cannot do with it, what i can do implementing macros. Please, have a closer look here ( https://github.com/jklwn2/fbc/tree/Array )
by Juergen Kuehlwein
Oct 22, 2019 19:05
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 4
Views: 163

How to add new features? (syntax, user API)

There have already been discussions about how new features should be added to the language. I can see two positions: 1.) don´t add new keywords to the main namespace, put everything new into an include file into it´s own namespace in order not to enlarge and "pollute" the main namespace. 2...
by Juergen Kuehlwein
Oct 22, 2019 16:13
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 66
Views: 9752

Re: Audio library for FreeBasic - Features

@grindstone, you need an editior, which can deal with LF (0x0A) only as linebreaks. In Windows the standard is CR+LF (0x0D + 0x0A). Obviously your editior doesn´t accept LF only as linebreak (or maybe it just isn´t set to do so). Or write a little conversion utility replacing LF with CR+LF in angros...
by Juergen Kuehlwein
Oct 20, 2019 18:41
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2808

Re: FreeBASIC 1.08 Development

Of course you are right!

Personally, even if it´s technically possible, i would do everything i can to avoid having "dwstring" and "fb.dwstring" in the same code. It´s too easy to make hard to find mistakes - YMMV.


JK
by Juergen Kuehlwein
Oct 20, 2019 15:02
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2808

Re: FreeBASIC 1.08 Development

I understand. That means that "USTRING" is a placeholder for fbc's var-len wstring data type in the future. Which means that "USTRING" eventually will be become reserved word Yes! This is what i wanted you understand all the time. (maybe my fault: language problems, not my nativ...
by Juergen Kuehlwein
Oct 20, 2019 14:40
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 66
Views: 9752

Re: Audio library for FreeBasic - Features

Sorry to contradict you again. The text you quoted is about writing user code,it´s not about the compiler. Whatever I accept, someone will be disappointed Yes, that´s a problem in general, when you are the boss :-) Once again, i understand that too many "core" statements in a language don´...
by Juergen Kuehlwein
Oct 20, 2019 13:38
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2808

Re: FreeBASIC 1.08 Development

Ok, let´s make it clone of the STRING type as far as possible! I don´t insist on a default of 260 bytes (260 bytes = %Max_Path in Windows) seems a reasonable choice and more allocated memory means less time consuming reallocate and copy oprations. It´s the usual tradeoff between space and speed. If ...
by Juergen Kuehlwein
Oct 20, 2019 10:35
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2808

Re: FreeBASIC 1.08 Development

So to summarize this (if i got it right), it´s not about making FB a C++ clone, it´s about enabling FB to link to C++ libraries too, which more and more are becoming standard over plain C libraries. Making FB more C++ compatible is beyond my expertise, but for sure, if a language doesn´t keep up wit...
by Juergen Kuehlwein
Oct 20, 2019 10:20
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 66
Views: 9752

Re: Audio library for FreeBasic - Features

@Jeff, i understand the concept and the need of namespaces. If there were five, six, seven libraries covering the same topic, it´s a requirement - it cannot work any other way. Not everything can be in the global namespace. On the other side when there currently is no (nothing, nada) support for a t...
by Juergen Kuehlwein
Oct 19, 2019 23:25
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 66
Views: 9752

Re: Audio library for FreeBasic - Features

No, you shouldn´t prefix all your functions with "WAVE". The functions dealing with waveforms should be summed up with "WAVE", the functions dealing with midi should be summed up with "MIDI", the filter functions coulds be named "FILTER" and so on. You have ce...
by Juergen Kuehlwein
Oct 19, 2019 22:33
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 66
Views: 9752

Re: Audio library for FreeBasic - Features

Well, you would have the "categorizing" effect and you would only "consume" words beginning with "wave". So as a user i would know "WAVE" (and derivatives of it) is a reserved word, i should aviod using own symbols beginning with "wave". From Mr. Swi...
by Juergen Kuehlwein
Oct 19, 2019 21:01
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 66
Views: 9752

Re: Audio library for FreeBasic - Features

Believe me, it works. You could do this: #macro wave(a, b...) wave_##a(b...) #endmacro which expands to different functions: wave_sine(...), wave_triangle(...), ... So you still need your functions, but you "consume" only the word "WAVE" (and variations beginning with it). You ca...
by Juergen Kuehlwein
Oct 19, 2019 20:11
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 66
Views: 9752

Re: Audio library for FreeBasic - Features

angros47, you could reduce the number of new key words needed by changing your syntax a bit. Example: instead of sinewave, trianglewave, ..., syncwave, mixwaves, loadwave, playwave, savewave" use wave(sine|triangle|...|sync|mix|load|play|save, ...). This requires only one new word ("WAVE&q...
by Juergen Kuehlwein
Oct 19, 2019 17:31
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2808

Re: FreeBASIC 1.08 Development

I partially second jj2007´s wishlist - a clear (and documented) folder structure - i don´t need an installer, but one zip file containing everything in place, including the preferred gcc toolchain (32 and 64 bit) - a means for having command line options inside the soure code (i did that for my own ...
by Juergen Kuehlwein
Oct 19, 2019 14:07
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2808

Re: FreeBASIC 1.08 Development

@Tourist Trap from my part I'm only sensitive to the consistency of the syntax and behaviour of any possible new feature. If you can intuit what the feature could be, or how it should work, and say "this is how it has to be", then it will be a good addition. If it doesn't work as usual, or...

Go to advanced search