Search found 229 matches

by Juergen Kuehlwein
Jun 09, 2019 15:34
Forum: Documentation
Topic: Compiler option: -w
Replies: 6
Views: 3145

Re: Compiler option: -w

Thanks, i already had it, but i made a mistake linking it to my IDE. So the older one was used instead of the new one, and i didn´t even notice it - my bad.


JK
by Juergen Kuehlwein
Jun 09, 2019 11:01
Forum: Documentation
Topic: Compiler option: -w
Replies: 6
Views: 3145

Re: Compiler option: -w

Obviously i have an outdated offline version (.chm) of the manual. Sorry for bothering you :-(


JK
by Juergen Kuehlwein
Jun 09, 2019 8:28
Forum: Projects
Topic: FreeBASIC IDE with enhanced debugging and project features
Replies: 47
Views: 16896

Re: FreeBASIC IDE with enhanced debugging and project features

Sorry for the delay, i somehow missed your question. You may use the -i ... command line switch, or (this is a feature of the IDE) #INCPATH ... in code, which does the same. There is a quite comprehensive help file: Help Menu/JK-IDE Help, please read about FreeBASIC specific things in the FreeBASIC ...
by Juergen Kuehlwein
Jun 08, 2019 21:10
Forum: Community Discussion
Topic: Extending Wstring and Zstring with UDTs
Replies: 75
Views: 18216

Re: Extending Wstring and Zstring with UDTs

Jeff,

i absolutely agree!

JK
by Juergen Kuehlwein
Jun 08, 2019 13:33
Forum: Documentation
Topic: Compiler option: -w
Replies: 6
Views: 3145

Compiler option: -w

There is a bug in this page

...
all
Equivalent to specifying a level of zero (0).
...


This is not true, "all" specifies a level of -1.


JK
by Juergen Kuehlwein
Jun 07, 2019 16:15
Forum: Community Discussion
Topic: Extending Wstring and Zstring with UDTs
Replies: 75
Views: 18216

Re: Extending Wstring and Zstring with UDTs

@Lost Zergling i don´t think so. SWAP does a swap, how exactly this is handled internally, doesn´t affect the user. And if there is an improvement, this doesn´t break existing code. Adding a SWAP operator doesn´t break SWAP either. It would add an ADDITIONAL method of doing it (maybe optimized for t...
by Juergen Kuehlwein
Jun 07, 2019 11:51
Forum: Community Discussion
Topic: Extending Wstring and Zstring with UDTs
Replies: 75
Views: 18216

Re: Extending Wstring and Zstring with UDTs

... it's very inefficient. So, even if these changes are merged in, I can see it changing again in future, possibly disallowing, or providing some other mechanism, like a specially named overloaded function/operator, like FOR/NEXT overloads. Well, first make it work at all, then make it better, fas...
by Juergen Kuehlwein
Jun 06, 2019 16:07
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 26560

Re: New array features

A very first version is here for testing. This first commit includes as a first feature "array(info, ...)" for retrieving values from the array descriptor. The added /bin directory contains the compiled 32 bit and 64 bit executable for fbc and the RTL modules for 32 bit (i cannot compile t...
by Juergen Kuehlwein
Jun 02, 2019 16:58
Forum: Community Discussion
Topic: Extending Wstring and Zstring with UDTs
Replies: 75
Views: 18216

Re: Extending Wstring and Zstring with UDTs

Great! Returning a WSTRING PTR with SADD/STRPTR seems a lot more logical than returning a ZSTRING PTR for a WSTRING! There shouldn´t be much of a problem with that change, because before in case of a WSTRING you would have had to cast it as WSTRING PTR anyway in order to use it. Now you might have p...
by Juergen Kuehlwein
Jun 02, 2019 10:24
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 26560

Re: New array features

About naming again - is there a problem or penalty when using long, unusual and underscored names in general as well as for and inside a namespace in order not to pollute the global namespace? I need some new names in the global namespace, but these are handled "internally", so that the us...
by Juergen Kuehlwein
Jun 02, 2019 9:53
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 26560

Re: New array features

I fail to understand, what you are after ...

i want it to be valid only in scope of my array macro. Anyway my previous question is obsolete now, because i have a better solution. You will understand, when i´m ready to present code.


JK
by Juergen Kuehlwein
Jun 01, 2019 20:34
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 26560

Re: New array features

Local #Define is useless in this context, because it is destroyed, as soon as you quit scope! i know, but that´s exactly what i want. Playing around trying to make the compiler do what i asked for (see question above) i remembered that i have the compiler sources ... TYPEOF() currently works for pr...
by Juergen Kuehlwein
Jun 01, 2019 11:31
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 26560

Re: New array features

I need a method of retrieving an array variable´s type in a function like manner. I could do something like this: #macro array_get_data_type__ (a) #if TypeOf((a)) = BYTE #define a_d_t_ 1 'array´s data type #elseif TypeOf((a)) = UBYTE #define a_d_t_ 2 #elseif TypeOf((a)) = SHORT #define a_d_t_ 3 #els...
by Juergen Kuehlwein
May 30, 2019 16:41
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 26560

Re: New array features

For various reasons it would be desirable to have a more function like syntax for getting the array descriptor. Obviously we cannot have: FUNCTION do_something(array() AS ANY) AS ... This isn´t possible because of the compiler´s type checking. Fxm´s code fools the compiler by presenting an appropria...
by Juergen Kuehlwein
May 29, 2019 20:59
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 26560

Re: New array features

I finally manged to make VARPTR work for arrays under all circumstances i could think of. Hopefully i will be able to supply test versions of fbc.exe (32 and 64 bit) at the weekend.


JK

Go to advanced search