Posted: Wed Aug 22, 2007 8:59 pm
it is almost always useless, because it can't be used with structured lists. :roll:
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
; Suggestion
AddElement(StructuredList())\Field1 = Value1
StructuredList()\Field2 = Value2
; Current
AddElement(StructuredList())
StructuredList()\Field1 = Value1
StructuredList()\Field2 = Value2
; Suggestion saves 1 line per added item for structured lists.
; Suggestion
AddElement(List()) = Value
; Current
AddElement(List())
List() = Value
; Suggestion saves 1 line per added item for unstructured list
; Since it saves the same amount of lines per added item for both
; unstructred and structured lists it is just as useful for structured lists.
Code: Select all
Procedure FunctionOnTheLeftSide()
ProcedureReturn 1
EndProcedure
Dim Array(10)
Array(FunctionOnTheLeftSide()) = 1
I see a problem with your reasoning: this is not a chicken.Trond wrote:Code: Select all
Dim Array(10) Array(FunctionOnTheLeftSide()) = 1