Search found 9106 matches

by fxm
Aug 19, 2019 12:04
Forum: Documentation
Topic: Wiki improvements
Replies: 352
Views: 36306

Re: Wiki improvements

maybe it would make sense to have two topics. 1) "Variable Scope and Lifetime" - beginner, most common use cases 2) "Object and Data Lifetime" - advanced, more detailed mechanics of allocation/deallocation, pointers & references Therefore, I propose for the "Programmer'...
by fxm
Aug 19, 2019 5:27
Forum: Documentation
Topic: Wiki improvements
Replies: 352
Views: 36306

Re: Wiki improvements

'Namespaces' page filled in the Programmer's Guide / Declarations:
- ProPgNamespaces → fxm [new page created]
- CatPgProgrammer → fxm [added link to "Namespaces" page]
- PrintToc → fxm [added link to "Namespaces" page]
by fxm
Aug 19, 2019 4:59
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 6362

Re: Array Descriptor (split from Wiki Improvements)

coderJeff wrote:The field will have 32 bits available for array descriptor options.

I hope this will be an Integer (32/64 bits) like all other fields, so 32 bits useful?

Where exactly do you intend to add this field in the array descriptor structure?
(perhaps just before the number of dimensions)
by fxm
Aug 18, 2019 16:51
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 6362

Re: Array Descriptor (split from Wiki Improvements)

Simplest solution is to add information (i.e. a "flags" field) to existing array descriptor and break compatibility. Because this is not the only bug reported that is going to break compatibility to fix, we are going break binary compatibility anyway on next release. Apart from the static...
by fxm
Aug 17, 2019 16:07
Forum: General
Topic: namespace problem
Replies: 45
Views: 9005

Re: namespace problem

Referring to the behavior described for C ++ (see my previous post), the following seems normal to me: namespace one declare sub s1() declare sub s2() end namespace using one sub s1() '' definition of one.s1() end sub declare sub s1() '' .s1() declared in the scope overrides one.s1() sub s1() '' OK,...
by fxm
Aug 17, 2019 15:20
Forum: General
Topic: namespace problem
Replies: 45
Views: 9005

Re: namespace problem

In C++: One aspect of the using directive may seem slightly counterintuitive at first. The visibility of the names introduced with a using directive is the scope in which the directive is made. But you can override the names from the using directive as if they’ve been declared globally to that scope!
by fxm
Aug 17, 2019 13:49
Forum: General
Topic: namespace problem
Replies: 45
Views: 9005

Re: namespace problem

This seems like it should be the normal behaviour and correct that the definition should be fully qualified, either inside a namespace block, or with the namespace identifier prefix But that works for a non-member procedure declared in a Namespace but outside implemented through a 'Using namespace_...
by fxm
Aug 16, 2019 20:29
Forum: General
Topic: namespace problem
Replies: 45
Views: 9005

Re: namespace problem

Bug or normal behavior? 'Using (Namespaces)' does not work for defining static data members, static procedure members and non-static procedure members of UDT inside a Namespace (the full names are mandatory). By cons, the shorten names work for accessing static data members, and calling static proc...
by fxm
Aug 13, 2019 18:35
Forum: General
Topic: Enhance code in this function
Replies: 5
Views: 907

Re: Enhance code in this function

Welcome to the forum! My version: Function CI(Text As String) As Double Dim As Integer l = Len(Text) Dim As Double su Dim As Integer ah(Asc("a") To Asc("z")) ' by default, declared numeric arrays are cleared For i As Integer = 0 To l - 1 ' local iterator Dim As Integer j = Text[i...
by fxm
Aug 13, 2019 14:24
Forum: Documentation
Topic: Wiki improvements
Replies: 352
Views: 36306

Re: Wiki improvements

maybe it would make sense to have two topics. 1) "Variable Scope and Lifetime" - beginner, most common use cases 2) "Object and Data Lifetime" - advanced, more detailed mechanics of allocation/deallocation, pointers & references Therefore, I propose for the "Programmer'...
by fxm
Aug 13, 2019 5:26
Forum: Documentation
Topic: Wiki improvements
Replies: 352
Views: 36306

Re: Wiki improvements

And so to make well the difference between a pointer or a reference to a var-len string (by the address of its descriptor) and a pointer or a reference to its data only (by the address of these ones): scope dim s as string = "first" dim ps as string ptr = @s dim byref rs as string = s dim ...
by fxm
Aug 12, 2019 19:48
Forum: Documentation
Topic: Wiki improvements
Replies: 352
Views: 36306

Re: Wiki improvements

I consider that: ⋅ For simple variables (including fix-len arrays) declared anywhere, as follows: Dim [Byref] [Shared] As datatype [Ptr] variablename or Static [Byref] Shared As datatype [Ptr] variablename they always have a lifetime related to their scope. ⋅ For simple variables...
by fxm
Aug 12, 2019 8:47
Forum: Documentation
Topic: Wiki improvements
Replies: 352
Views: 36306

Re: Wiki improvements

I would change the title in CatPgProgrammer of 'Variable Scope' to 'Variable Scope (and lifetime)' and extend the ProPgVariableScope page a little. They aren't the same topic, but most beginners confuse the two and need to know more about scope than lifetime, anyway. Then get rid of the empty place...
by fxm
Aug 10, 2019 6:36
Forum: General
Topic: Name a variable after a register
Replies: 1
Views: 865

Re: Name a variable after a register

In the asm code, the square brackets (around FB variable or FB function return) are mandatory for "gas", but optional for "gcc" (your case).
by fxm
Aug 09, 2019 15:40
Forum: Documentation
Topic: Wiki improvements
Replies: 352
Views: 36306

Re: Wiki improvements

Jeff, While working on the "Iterators" page, I discovered that the access rights (as private, protected and public) of the overload iterating operators (For, Next and Step) are not taken into account by the For...Loop statement. By cons (for example), that works well for the overload opera...

Go to advanced search