Lasso Soft Inc. > Home

[ escape_member ]

Method

Used to escape ::tags allowing them to target methods within types.

A short hand backslash is also available.

  • Syntax
null->escapemember(::tag)

local( mytag = ::tag )
null->\#tag
Examples
  • Advanced

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)

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft