Search found 9106 matches

by fxm
Aug 23, 2019 12:05
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 5899

Re: Array Descriptor (split from Wiki Improvements)

fxm wrote:Post us code where it does not work for 64-bit.

MrSwiss wrote:Should be obvious, that the bit_masks, need extensions for FBC 64.

You have not responded to my specific request.
by fxm
Aug 23, 2019 12:02
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 5899

Re: Array Descriptor (split from Wiki Improvements)

Static - dynamic: to my understanding a static (fixed size) array´s descriptor must not be changed at runtime. That is number of dimensions and number of elements must be static. You must not be allowed to redim or erase such an array. Just a little brightening; Using the future 'static' flag, ERAS...
by fxm
Aug 23, 2019 11:39
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 5899

Re: Array Descriptor (split from Wiki Improvements)

MrSwiss wrote:Sorry, but this is only good for FBC 32 bit ... not so, for FBC 64 bit!
Except the "bitfield" (aka: flags) is of a fixed size: ULong (not UInteger).

No problem for me.
Post us code where it does not work for 64-bit.
by fxm
Aug 23, 2019 7:32
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 5899

Re: Array Descriptor (split from Wiki Improvements)

coderJeff wrote:
speedfixer wrote:Does this mean that all arrays will have descriptors, exposed and available, in this future version?

david

Yes, that is the intent.

For those who want to test all this, download at http://users.freebasic-portal.de/stw/builds/:
- last fbc build
- and freebasic_additional_headers.zip
by fxm
Aug 23, 2019 6:13
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 5899

Re: Array Descriptor (split from Wiki Improvements)

A remark a little off-topic about the syntax to use to designate an array (in its entirety): - We must use either 'array()' or 'array' (without parentheses) depending on the keyword used. - This constraint is a nuisance when one wants to define a macro with such a parameter, because it is not known ...
by fxm
Aug 20, 2019 17:47
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 5899

Re: Array Descriptor (split from Wiki Improvements)

For this to be complete, we must also allow in UDTs: - '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 'A...
by fxm
Aug 20, 2019 15:26
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 5899

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

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: 121
Views: 5899

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: 121
Views: 5899

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: 121
Views: 5899

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: 121
Views: 5899

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: 121
Views: 5899

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: 121
Views: 5899

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: 121
Views: 5899

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.

Go to advanced search