Lasso Soft Inc. > Home

[Private] ... [/Private]

[Private] ... [/Private] surround member tags and variables which should be kept private to a custom data type.

Private members can be accessed from within any of the member tags of a custom type using the [Self->TagName] or [Self->'VariableName'] syntax. Private members cannot be accessed from outside an instance of the custom type. They are not listed by ->Properties and cannot be called using ->TagName or ->'VariableName'. Private members cannot be accessed by sub-classes of the data type.

The [Private] ... [/Private] tags should be used to protect member tags which are used for the implementation of the data type, but do not need to be called from outside the data type. These tags can also be used to protect variables which hold the state of the custom type.

  • Syntax
  • Parameters
Define_Type: 'MyPrivateValue';
  Private;
    Local: 'value' = 'test';
  /Private;
  Define_Tag: 'oncreate', -Required='value';
    Self->'value' = #value;
  /Define_Tag;
  Define_Tag: 'onconvert';
    Return: Self->'value';
  /Define_Tag;
/Define_Type;
Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Tag Link [Private] ... [/Private] Category Custom Tag
Type Container Data Source Any
Support Preferred Version 8.5
Output Type None Security None
Implementation Sets Lasso 8.5

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