Search found 260 matches

by Lost Zergling
Jul 29, 2019 13:15
Forum: General
Topic: Return pointer to an array from a function
Replies: 13
Views: 4764

Re: Return pointer to an array from a function

Yes, instead of deleting outside, a redim inside a parallel scope (triggered by a parameter passed to the function) will indicate to the compiler the free space. It is difficult to imagine Dim doing the job just one way. lzae envisaged evolutions : support for indices on SetCursor(indice, (...) as i...
by Lost Zergling
Jul 29, 2019 11:03
Forum: General
Topic: Return pointer to an array from a function
Replies: 13
Views: 4764

Re: Return pointer to an array from a function

Sounds like a "quirk" !-) #Include Once "D:\Basic\lzae_04.bi" Function returnPtr(ByRef aext As ArrayExtension, nB as Integer=2) as integer Static outarr() as double '= {10.1,20.2,30.3} Redim Preserve outarr(nB) outarr(0)=10.1 : outarr(1)=20.2 : outarr(2)+=30.3 : aSet(outarr() , a...
by Lost Zergling
Jul 28, 2019 15:28
Forum: General
Topic: Return pointer to an array from a function
Replies: 13
Views: 4764

Re: Return pointer to an array from a function

Even though at the technical level in the Globals section, Static means "persistent" (it is rather a scope of duration than mapping). If the array is not copied, it ceases to exist at the end of the returnPtr function. Starting with the principle of creating the array in the function, usin...
by Lost Zergling
Jul 26, 2019 18:06
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 26592

Re: StringArray Sort (case independent)

I would use my leaky lzle to fill a list using Lcase or Ucase for Tag0 (keys) and original keys as values or Tag1 ?...
by Lost Zergling
Jul 26, 2019 12:28
Forum: General
Topic: Return pointer to an array from a function
Replies: 13
Views: 4764

Re: Return pointer to an array from a function

something like this : #Include Once "D:\Basic\lzae_04.bi" Function returnPtr(ByRef aext As ArrayExtension) as integer Static outarr(...) as double = {10.1,20.2,30.3} aSet(outarr() , aext) Return 1 End Function Dim i As Integer Dim aext As ArrayExtension returnPtr(aext) For i=1 to aext.NbSt...
by Lost Zergling
Jul 26, 2019 10:35
Forum: General
Topic: Return pointer to an array from a function
Replies: 13
Views: 4764

Re: Return pointer to an array from a function

What really is an array in FB ? It could be summarized as two data structures and a hidden algorithm. The second structure contains all the elements of the array following each other and the first data structure (called the descriptor) contains technical access information (address of the first and ...
by Lost Zergling
Jul 23, 2019 22:07
Forum: Beginners
Topic: How to include arrays in type/class
Replies: 14
Views: 4371

Re: How to include arrays in type/class

@fxm. Certes, certes. mais cela montre que quelqu'un est capable de faire des posts valant les miens :-)
by Lost Zergling
Jul 23, 2019 14:49
Forum: Beginners
Topic: How to include arrays in type/class
Replies: 14
Views: 4371

Re: How to include arrays in type/class

Just a question ? ' class: Type rndict public: prognames(Any) as string prognums(Any) as integer declare sub showitems() end type ... redim progdict.prognames(2) ' or any Dim pnames(Any) as string redim pnames(2) ' or any ' Swap rndict.prognames, pnames => Is "Illegal non-static member access&q...
by Lost Zergling
Jul 23, 2019 13:26
Forum: Beginners
Topic: Why wrong length of array
Replies: 8
Views: 4064

Re: Why wrong length of array

@rnbas. FB is a language that is much more powerful than its ease of handling suggests at first glance. As you later wish to go further, pointers and object-oriented syntax are available. For example, the Mid function repeated on the same string can be replaced by the use of pointers (4x faster espe...
by Lost Zergling
Jul 15, 2019 21:56
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 32183

Re: New array features

@speedfixer: from my point of view, Mr Swiss is one of the rare people who can have worse posts than mine, I try to deal with. I remain convinced of the interest of the works around functions "high level", even if it will be partly in competition with a solution that I propose and thus I b...
by Lost Zergling
Jul 15, 2019 7:32
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 32183

Re: New array features

In my opinion, it is very important to be able to offer "high level" libraries but at the same time easy to use because it contributes to the attractiveness of the language. The question of how only arises in the case where one envisages targeted evolutions of the functions low-level, this...
by Lost Zergling
Jul 11, 2019 23:00
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 32183

Re: New array features

@JK. The new version of Lzle seems to meet much more success than Lzae, and it is not because of not having promoted it or not having put some technicality or functional openings. It's a simple observation. It's a bit disappointing because it was a big part of the thinking and the work, but on the o...
by Lost Zergling
Jul 08, 2019 23:06
Forum: Projects
Topic: LZLE List Engine with user friendly powerfull syntax - BETA 0.994 -
Replies: 87
Views: 23216

Re: LZLE List Engine with user friendly powerfull syntax - BETA 0.993 -

Archive Beta 0.993 Part 3 Property List.Destroy As Byte If bPVSmethod<>-1 Then : Print "PVS_Count=" & PVS_Count : End If '& " (the bigger, the most the optimization algo was used)" : End If If ubKeysRegister=1 Then : Print "KR_Count=" & KR_Count : End If If...
by Lost Zergling
Jul 08, 2019 23:05
Forum: Projects
Topic: LZLE List Engine with user friendly powerfull syntax - BETA 0.994 -
Replies: 87
Views: 23216

Re: LZLE List Engine with user friendly powerfull syntax - BETA 0.993 -

Archive Beta 0.993 Part 2 '==========================================================================================TYPE LIST PUBLIC PROPERTIES - SORTING Property List.ColSort(i as Byte) As Byte : If i > MAX_COLS-1 then : this.uTag=MAX_COLS-1 : Return 0 : Else : this.uSortTag=i : Return 1 : End If...
by Lost Zergling
Jul 08, 2019 23:03
Forum: Projects
Topic: LZLE List Engine with user friendly powerfull syntax - BETA 0.994 -
Replies: 87
Views: 23216

Re: LZLE List Engine with user friendly powerfull syntax - BETA 0.993 -

Archive Beta 0.993 Part 1 ' NOTICE : Thank you to remove first single quote on the line below once you accepted the licence. ' /' In case redistribution of SOURCES you may ensure to reactivate the acceptance of the license. This notice may be anywhere in source code till licensed user is aware it e...

Go to advanced search