Lasso Soft Inc. > Home

[ escape_tag ]

Method

[escape_tag] creates an instance of a type. Requires a parameter as either the name of the type (::tag) or as a single-quoted string ('tag').

Further, appending the tag name with appropriate values in parentheses to the type will initialize the type with those values.

  • Syntax
escape_tag(::tag)
escape_tag('tag')
escape_tag(::tag)(Value)
escape_tag('tag')(Value)
Examples
  • Intermediate
  • Advanced

Create an [array] by referencing its ::tag as a string.

Code

escape_tag('array')('a','b','c')

Result

array(a, b, c)

Create an [array] by referencing its ::tag.

Code

escape_tag(::array)('a','b','c')

Result

array(a, b, c)

Dynamically select the type to create.

Code

local(thetype) = 'array'
escape_tag(#thetype)('a','b','c')

Result

array(a, b, c)

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 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft