Re: How to create a function that returns nothing

2003-10-14 Thread Luke Palmer
Joe Gottman writes: > How do you declare a function that doesn't return anything? For instance, a > C++ swap function might be declared >template > void swap(X &x, X &y); > > It would be nice to declare the corresponding Perl6 function as > sub swap ($x is rw, $y is rw) returns nothing {.

How to create a function that returns nothing

2003-10-14 Thread Joe Gottman
How do you declare a function that doesn't return anything? For instance, a C++ swap function might be declared template void swap(X &x, X &y); It would be nice to declare the corresponding Perl6 function as sub swap ($x is rw, $y is rw) returns nothing {...} or something similar. This wo