Anonymous user
Respond to an unknown method call: Difference between revisions
Respond to an unknown method call (view source)
Revision as of 09:32, 15 September 2010
, 13 years ago→{{header|Fancy}}
Line 93:
=={{header|Fancy}}==
<lang
def class CatchThemAll {
def foo {
Line 104:
def unknown_message: msg with_params: params {
"message: " ++ msg print
"arguments: " ++ (params join: ", ") println
}
};
a = CatchThemAll new
a foo
a bar
a we_can_do_it
a they_can_too: "eat" and: "walk"
</lang>
|