passby=reference|value
attribute to function arguments where you can decide if you want to pass by reference or value.=
sign and :
are interchangeable in CFML. So you can use any to define your structures."
).toString()
call on any structure to get a string representation of its keys+values: produce.toString()
structNew()
function. This just basically assigns a struct to a variable. You will then be responsible for filling that structure out with data.{}
notation which looks nicer? The answer is that in CFML you can create different types of structures:linked/ordered
- a struct with ordered keys that maintain insertion ordernormal
- an unordered structuresoft
- a struct with Java soft referenced values, which can be cleared by the garbage collector if memory is needed.weak
- a struct with Java weak referenced values, which do not prevent their referents from being garbage collected.keyArray()
which gives you the listing of keys as an array:for
loopsloop
constructseach()
closureseach()
operations in a multi-threaded fashion. The structEach()
or each()
functions allows for a parallel
and maxThreads
arguments so the iteration can happen concurrently on as many maxThreads
as supported by your JVM.