View Single Post
Old 07-25-2009, 06:02 AM   PM User | #2
Trinithis
Regular Coder

 
Join Date: Jun 2007
Location: USA
Posts: 527
Thanks: 26
Thanked 74 Times in 72 Posts
Trinithis will become famous soon enough
Interesting. I had no idea that labels(1) could be used in such a fashion (edit: oh, I see... eval). Kudos.

Does the code support inheritance?

Instead of doing this:
Code:
this.api=(Crass(eval(Crass(arguments,this))));
Could the following work:
Code:
runCrass (arguments, this);

where runCrass is defined as

function runCrass (args, self) {
  self.api=(Crass(eval(Crass(args,self))));
}
(1) A label is the following:
Code:
label: statementOrControl;

Last edited by Trinithis; 07-25-2009 at 06:11 AM..
Trinithis is offline   Reply With Quote