Search found 10215 matches

by fxm
Mar 02, 2021 17:50
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1482

Re: String index doc

'Dim As Integer c = a[6]' only copies 'a[6]' in the variable 'c' , therefore 'c' is not created as reference. But 'Dim Byref As Integer r = a[6]' creates a reference 'r' to 'a[6]' which is already a reference to the 7th character of the string...
by fxm
Mar 02, 2021 15:49
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1482

Re: String index doc

Give its opinion on the merit of underlining that this operator returns a reference by adjudging that it is rather a detail to be reported at the end of the description, and at the same time admit not knowing what is actually a reference and even not being interested in that (even if I offered some ...
by fxm
Mar 02, 2021 11:32
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1482

Re: String index doc

I wanted to clarify that the reference is of numeric type and not of type string for example, but ok for your proposal.
by fxm
Mar 02, 2021 10:10
Forum: Community Discussion
Topic: Moderators, FB community
Replies: 27
Views: 1036

Re: Moderators, FB community

I unlocked the original thread and therefore moved your post to put it there.
by fxm
Mar 02, 2021 9:12
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1482

Re: String index doc

I have unlocked the topic, but please, for those who are not quite sure what a REFERENCE is, read these two articles: - From Pointers to References - Using References before arguing about the need to specify it at the beginning of the page, or only at the end of the description (as a detail). The di...
by fxm
Mar 01, 2021 22:35
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1482

Re: String index doc

fxm wrote: continuing this discussion is fruitless.

I locked this topic.
by fxm
Mar 01, 2021 22:06
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1482

Re: String index doc

Under the hood, its returns a pointer by value, which is implicitly dereferenced. It is exactly the definition of a reference in FreeBASIC (an internal pointer implicitly dereferenced). See in the Programmer's Guide my two articles in the topic 'Variables and Datatypes / References'. Having said al...
by fxm
Mar 01, 2021 20:10
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1482

Re: String index doc

it returns the numeric value of the char inside the string a at position n Precisely. Not just that. It also allows you to modify the value of the character at position n (which a simple copy cannot do). This entity (a kind of alias) which makes it possible to read and modify the value of a variabl...
by fxm
Mar 01, 2021 17:35
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1482

Re: String index doc

Under the hood, its returns a pointer by value, which is implicitly dereferenced.
It is exactly the definition of a reference in FreeBASIC (an internal pointer implicitly dereferenced).

See in the Programmer's Guide my two articles in the topic 'Variables and Datatypes / References'.
by fxm
Mar 01, 2021 15:23
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1482

Re: String index doc

UShort or ULong or ..... for WStrings, depending on platform!

The keyword manual should be the reference for the language, not a tutorial or beginner's documentation.
by fxm
Mar 01, 2021 15:00
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1482

Re: String index doc

First, one should extend your proposition to WStrings:
A numeric type containing the value of a string-character (byref return)
to compare to:
Returns a numeric reference to a character value in a string

I prefer mine which is more compact and precise IMHO.
by fxm
Mar 01, 2021 14:03
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1482

Re: String index doc

Maybe it would be better like this?
Returns a numeric reference to a character value in a string

Anyway, if it's the term 'reference' that bothers you, we can't escape it because it's the appropriate term!
by fxm
Mar 01, 2021 6:54
Forum: General
Topic: How to store Erfn() into a string variable
Replies: 10
Views: 298

Re: How to store Erfn() into a string variable

Similar problem as in https://www.freebasic.net/forum/viewtopic.php?p=280315#p280315 Other possible workaround: 'compile with -exx private function fun1(ar1x() as double) as integer on local error goto fail ar1x(2) = 1 'deliberately cause an error return 0 fail: dim as integer errorn, errorl dim as ...
by fxm
Mar 01, 2021 6:32
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1482

Re: String index doc

'Returns a reference' is the right term because the 'Operator [] (String Index)' really returns by reference (see Syntax). "Returns a reference" is very precise, and this is an important term that one needs to know well (see Reference in Glossary ): - 'Return by reference' is the opposite ...
by fxm
Feb 27, 2021 8:37
Forum: General
Topic: wth -- Thread time .vs Subroutine time
Replies: 192
Views: 6338

Re: wth -- Thread time .vs Subroutine time

ThreadDispatching Type, over-structure of ThreadPooling Type, dispatching user thread procedures over a given max number of secondary threads The number of secondary threads that can be used is fixed when constructing the 'ThreadDispatching' instance (1 secondary thread by default). 'ThreadDispatch...

Go to advanced search