Used to escape ::tags allowing them to target methods within types.
A short hand backslash is also available.
null->escapemember(::tag)
local( mytag = ::tag )
null->\#tag
The below example inserts an item into an array by invoking the insert method via its ::tag.
Code
local( myarray = array )
#myarray->escape_member(::insert)('this was inserted')
#myarray
Result
array(this was inserted)
A short hand version of it.
Code
local( myarray = array, tag = ::insert )
#myarray->\#tag('this was inserted')
#myarray
Result
array(this was inserted)
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments