[Helma-user] static methods of Prototype

Anton Pirker helma at gmiatlich.net
Thu Aug 10 16:56:44 CEST 2006


Hi list!

I want to have a static method for a Prototype. So i can call the method 
without a HopObject of the Prototype.
For example:

var s = MyProtoName.getStuff();



The second thing is, that i only have a string containing the name of 
the prototype. Can i get the Prototype from the string somehow?

Something like this:

var s = "MyProtoName";
var proto = new MagicStuff(s);
proto.getStuff();



Is there a way to accomplish this?

thanks in advance
Anton



More information about the Helma-user mailing list