Difference between revisions of "New"

From Kolmafia
Jump to navigation Jump to search
imported>Heeheehee
(Crappy page, I know, but I'm a bit preoccupied.)
(No difference)

Revision as of 14:54, 16 July 2010

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