List Info

Thread: Argument Errors




Argument Errors
user name
2006-04-30 19:41:47
>> looses flexibility.
>
> You would first have to define me the parameters you're thinking 
> of. That is to say, how would this be optional? The more specific 
> you are, the better example(s) I can give you.

Even though every time I mention it you seem to throw up, how does 
Ruby's implementation of non-arity checked methods limit your ability 
to write macros?

def foo(*bar)
end

Where bar is then accessible within foo as an array.

-Lucas

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )