"Sputnik" help  
Sputnik Help
Language Reference - Operators - Operator (~~Identifer) (Cast As Class)

Operator (~~identifier)

Cast with class. eg.

Class Testy
{
    Function Hello()
    {
        say "Hello!";
    }
    Function __FromCast()
    {
        say "Loading class from cast!";
        return true; // true = ADD the array!
    }
}
$a = "Hello";
((~~Testy)$a)->Hello();
// PRINTS
// Loading class from cast!
// Hello!

To see a list of all the operators go here.


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org