Anonymous user
Icon+Unicon/Intro: Difference between revisions
m
→Procedure Parameter Type Casting: clarified
m (→Keywords: spelling) |
m (→Procedure Parameter Type Casting: clarified) |
||
Line 786:
=== Procedure Parameter Type Casting ===
Unicon procedure definitions allow for specification of type coercion functions and default values.
* for records and structures the type of the parameter is tested
* for types with type coercion functions (e.g. integer, real, numeric, string) the function is called to test type and perform type coercion.
<lang Unicon>
procedure f1(i:integer:1,r:real,s:string,n:numeric,S:set,L:list,x:
=== Event monitoring and cross-co-expression introspection ===
|