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

Operator (~identifier:identifier)

Cast with function from class. eg.

my $word = MakeWord(77, 42);
say (~CU:HigherByte)$word;
say (~CU:LowerByte)$word;

Class CU
{
    Function HigherByte($w)
    {
        return ((byte)((uint64)($w) >> 8)) + 1;
    }
    Function LowerByte($w)
    {
        return ((byte)((uint64)($w) & 0xff)) + 1;
    }
}

// PRINTS
// 78
// 42

To see a list of all the operators go here.


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