New (NamedArraylist constructor)

From m204wiki
Revision as of 17:12, 5 January 2011 by 198.242.244.47 (talk) (Created page with "<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Create new NamedArraylist instance<section end=dpl_desc/></b></span> [[Category:NamedArraylist methods|New c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<section begin=dpl_desc/>Create new NamedArraylist instance<section end=dpl_desc/>

New is a member of the NamedArraylist class.

This method returns a new instance of a NamedArraylist.

Syntax

  %namrayl = New

Syntax Terms

%namrayl
A NamedArraylist object that is set to a new NamedArraylist object reference.

Usage Notes

  • New is a constructor and as such can be called with no object, with an explicit class name, or with an object variable, even if that object is null:
        %namrayl = new
        %namrayl = %(namedArraylist):new
        %namrayl = %namrayl:new
    
    note

    When using the second of these syntax options of New, which explicitly indicates the class, both the collection and item datatypes must be specified just as they are on the collection variable's declaration:

        %namrayl  is collection NamedArraylist of longstring
        %namrayl  = %(NamedArraylist of longstring):new