Kaya 0.5.3 reference for Builtins::Unguarded_Guard

List of functions and data types in Builtins

Builtins::Unguarded_Guard()

Usage

This Exception is thrown when a shorthand syntax is used and an unexpected case occurs.

Int mag(Int x) | x<0 = -x;
               | x>0 = x;
//Calling this function with x==0 throws this exception
kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya