Help for this page

Select Code to Download


  1. or download this
    my Int $x = 17;
    my Int $y is readonly := $x;
    
  2. or download this
    sub foo (Int $y) { ... } 
    my Int $x = 17;
    foo($x);
    
  3. or download this
    my Int $x = 17;
    $x -> $y { ... }
    
  4. or download this
    my Int $x is readonly = 17;
    my Int $y := $x;
    
  5. or download this
    sub foo (Int $y is rw) { ... }
    foo(17);
    my Int $x is readonly = 17;
    foo($x);
    
  6. or download this
    sub foo (Int|constInt $y) { ... }