Revision [726]

This is an old revision of new made by AdminSkyld on 2010-06-02 16:25:06.
 
Usage

Object syntax: var = new [int number];
Array syntax: var = new ObjectClass(string param)

Explanation

new [int n] initializes a new array of size 'n' containing empty elements.

new ObjectClass(string param) creates a new ObjectClass instance.

Example

function onCreated()
{
  this.array = new[10];

  echo( this.array.size() );
  echo( this.array ) ;
}


...Echos "10" and "0,0,0,0,0,0,0,0,0,0" to RC

Categories

CategoryLanguageConstruct

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
⚡ WEB1 (144.76.42.176) — Testing Environment ⚡