Search found 9056 matches

by fxm
Aug 20, 2019 17:47
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

For this to be complete, we must allow also 'As datatype array()' in UDTs (in this case, the descriptor is allocated for 8 dimensions), in addition to 'As datatype array(Any, ...)' (where the allocated descriptor is sized depending on the number of 'Any' declared) and...
by fxm
Aug 20, 2019 15:26
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

I think that only if you declare the dynamic array as: {Dim|Static} [Shared] As datatype array() (without any indication of sizing) the allocated descriptor is sized for the maximum number of dimensions (8). But if you declare the dynamic array as: {Dim|Static} [Shared] As datatype array...
by fxm
Aug 20, 2019 13:48
Forum: Community Discussion
Topic: my best effort
Replies: 125
Views: 8632

Re: my best effort

"fbcadcam.net/forum/" is it down (I get no page or a blank page depending on broswer)?
by fxm
Aug 20, 2019 13:16
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

The size of the array descriptor may depend on the number of dimensions. If you increase the number of dimensions, the descriptor should be reallocated in memory, which should often change its address, but change the referencing of an array is not possible. I think that only if you declare the dynam...
by fxm
Aug 20, 2019 5:43
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

But the bigger problem is to distinguish between a var-len array in the heap and a fix-len array in the .BSS or .DATA section. For example, in your Scope block, between: Redim As Double d(4, 5 to 7) '' var-len array data in the heap and Static As Double d(4, 5 to 7) ''...
by fxm
Aug 19, 2019 20:59
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

Sub Proc(ByRef Result As Integer, Ar() As Integer) Print Result '<- Valid ReDim Preserve Ar(20) '<- The reference is invalidated Print Result '<- Invalid, the element may have been moved @Result = @Ar(1) Print Result '<- Valid, the reference has been reinitialized End Sub Dim Array() As Integer ReD...
by fxm
Aug 19, 2019 16:26
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

In the present structure of array descriptor, one single field could be instanced on a shorter word (than Pointer/Integer). This is the number of dimensions (between 0 and 8). Is it better to use here a Byte instead of an Integer in the descriptor structure?
by fxm
Aug 19, 2019 16:08
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

MrSwiss wrote:Why do you always feel the need, to state the obvious?

I do not feel that other users view most of my posts and articles and documentation pages as obvious information.
by fxm
Aug 19, 2019 15:40
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

In any way, the final decision is up to the developer (Jeff).
by fxm
Aug 19, 2019 14:43
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 862

Re: Array Descriptor (split from Wiki Improvements)

Anyway, as this type of structure (descriptors) already contains pointers and most of the other fields are information linked to available addressing, this will be done naturally with 32/64 bits.
by fxm
Aug 19, 2019 12:04
Forum: Documentation
Topic: Wiki improvements
Replies: 320
Views: 29409

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: 320
Views: 29409

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: 64
Views: 862

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: 64
Views: 862

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: 7021

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

Go to advanced search