new

From Kolmafia
Revision as of 14:54, 16 July 2010 by imported>Heeheehee (Crappy page, I know, but I'm a bit preoccupied.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax: new record ( param, ... );

record is the record to use.

For instance:

record dblstr{
   string a;
   string b;
};

dblstr test;
test.a = "hello";
test.b = "world";

is functionally identical to

record dblstr{
   string a;
   string b;
};

dblstr test = new dblstr("hello","world");


Formatting Needed