Search found 272 matches

by Juergen Kuehlwein
Nov 02, 2019 22:24
Forum: Beginners
Topic: LEN and namespaces
Replies: 4
Views: 200

Re: LEN and namespaces

I made a pull request for a bug fix. This fixes an error with LEN and explicit namespace syntax (namespace.identifier). Before it was necessary to enclose such syntax in parenthesis to make it an expression, now it works as expected (without extra parenthesis)

Jeff, i hope this is correct!

JK
by Juergen Kuehlwein
Nov 01, 2019 17:13
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 61
Views: 2073

Re: Unable to access fb.net forums

For me it was down again the last two hours or so.

JK
by Juergen Kuehlwein
Nov 01, 2019 7:54
Forum: Beginners
Topic: LEN and namespaces
Replies: 4
Views: 200

Re: LEN and namespaces

Hi fxm, by Juergen Kuehlwein » 31 Oct 2019, 23:47 by fxm » 31 Oct 2019, 23:57 you are almost fast as lightning :-) Thanks - my bad, i missed that, should have read more thoroughly. But why is that? Other statements like "SIZEOF, LEFT, RSET, ...) work perfectly well without these extra parenthes...
by Juergen Kuehlwein
Oct 31, 2019 22:47
Forum: Beginners
Topic: LEN and namespaces
Replies: 4
Views: 200

LEN and namespaces

Is there a known problem with LEN and namespaces? dim n as long dim s as string = "123" '#define use_namespace #ifdef use_namespace namespace test_ #endif private function testme(s as string) as string return s + "123" end function #ifdef use_namespace end namespace #endif #ifdef...
by Juergen Kuehlwein
Oct 26, 2019 21:19
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 53
Views: 2074

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

Ah, i see José cross-posted. I would call José´s stuff "advanced" (i recommend having a look, by all all means) while the stuff i´m speaking of is far more basic. In general i´m not against including things with an include file. It´s a great method of adding (advanced - this is my point!) ...
by Juergen Kuehlwein
Oct 26, 2019 21:12
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 53
Views: 2074

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

i agree to point #1 and #2 in your preceding post, i disagree with #3 and #4 (please have a look at my pull requests: array and string. The new pp operators make a versatile syntax possible, without the need to re-write lots of the compiler) i made it work! i see your point #5 and i admit this is th...
by Juergen Kuehlwein
Oct 26, 2019 17:11
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 53
Views: 2074

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

Well, i have learned that adding multiple new key words (like in your proposal) is a "no go" - the more the more words are needed. Some even don´t want to add one single new word to the global namespace, however justified this might be. Hiding your new words in a namespace is only of limit...
by Juergen Kuehlwein
Oct 26, 2019 15:45
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 53
Views: 2074

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

The reaction to that is of course: "rather safe than sorry". (Don't allow a precedence case, to start with!) ... with you as the Guardian of the ultimate truth! To me it seems this is becomming more and more a matter of "religion", than of arguments and facts... I accept your po...
by Juergen Kuehlwein
Oct 26, 2019 11:10
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 53
Views: 2074

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

I think I understood from the beginning that your proposal is a file to include, containing a macro allowing to call different procedures in a namespace.

Yes!!!

@fxm,
you definitly weren´t the addressee of my previous post. I know you got it right from the beginning.
by Juergen Kuehlwein
Oct 26, 2019 9:10
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 53
Views: 2074

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

@JK, can you implement any of your ideas, without adding a single new key word to 'global namespace' ? The answer to my rethorical question (above) is definitely "NO". The answer to your question is definitely " YES " If you had made the effort of reading the opening post thorou...
by Juergen Kuehlwein
Oct 25, 2019 22:13
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 53
Views: 2074

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

I´m asking two questions: If i got it right, then the namespaces´ name is unavailable (blocked, reserved, consumed) for any other use in the same code. That´s the same as for a macro. Is this true (i cannot have a procedure, a variable, a constant, an enum with the same name as a namespace used in m...
by Juergen Kuehlwein
Oct 25, 2019 19:53
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 53
Views: 2074

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

I do not see any fundamental differences with a classic namespace usage: added to what i already posted above: If i got it right, then the namespaces´ name is unavailable (blocked, reserved, consumed) for any other use in the same code. That´s the same as for a macro. But a macro offers a much more...
by Juergen Kuehlwein
Oct 22, 2019 21:16
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 53
Views: 2074

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: 53
Views: 2074

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: 77
Views: 12439

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...

Go to advanced search