Hi Aristotle,

A. Pagaltzis (12:12 2006-05-24):
> Hi Martin,
> 
> * Martin Kjeldsen <[EMAIL PROTECTED]> [2006-05-24 11:50]:
> > Just curious does this actually run? I'm trying on pugs 6.2.11
> > and it complains quite a bit. First of all shouldn't
> > 
> > for %buckets.values -> $arg_for
> > 
> > be 
> > 
> > for %buckets.values -> $arg_for is rw
> > 
> > since $arg_for is modified?
> 
> No, $arg_for is not modified.
> 
Sorry it could be just me, but isn't $arg_for modified in this

$arg_for<array> = [ ( 0 .. $arg_for<count> ) »*« $arg_for<scale> ]; 

I understand this as the hash entry with key 'array' get assigned a array 
consisting of $count number multiplied by $scale. If that is right, we must be 
modifying $arg_for (%buckets) since we are adding an entry to the hash.

> > And then I get an error telling me 'No such method in class
> > Scalar: "&kv"' in the line 
> > 
> > for %buckets<w><array>.kv -> $i, $w {
> 
> Strange. I did this just by looking at synopses, though, so my
> syntax is probably slightly off.

I don't understand why it dosn't work at all, maybe .kv isn't implemented yet 
in 
pugs.

> 
> Regards,
> -- 
> Aristotle Pagaltzis // <http://plasmasturm.org/>

Reply via email to