[bug][bug][crash]
Andrew C. Greenberg
werdna at gate.net
Wed Mar 10 02:15:15 UTC 1999
> while setting up a pws for rpc, and dealing with overzealously-parsed CGIs,
> a couple of strange behaviours showed up. for the record... :
>
> i. if you do a #perform:withArguments: on a mono-argumental method but
> specify several arguments in the withArguments section, the method is
> passed its own name as an argument... Eg::
>
> String perform: #fromString: withArguments: #('this is ok').
> String perform: #fromString: withArguments: #('this is ...' '... weird').
>
> the second statement results in: 'fromString:' (while the first correctly
> results in 'this is ok').
Sounds like a stack mismatch, where the initial parameter was all
that was left.
> ii. The statement '6 size' evaluates to 0... (This is true for any
> number). Is this the intended semantics of 'size'?
size is a primitive when inherited from Object, returning the number
of indexable objects of an Object. Accordingly, most scalars ought
to respond 0.
More information about the Squeak-dev
mailing list
|