Respond to an unknown method call: Difference between revisions
Content deleted Content added
Line 93: | Line 93: | ||
=={{header|Fancy}}== |
=={{header|Fancy}}== |
||
<lang |
<lang fancy> |
||
def class CatchThemAll { |
def class CatchThemAll { |
||
def foo { |
def foo { |
||
Line 104: | Line 104: | ||
def unknown_message: msg with_params: params { |
def unknown_message: msg with_params: params { |
||
"message: " ++ msg print |
"message: " ++ msg print |
||
"arguments: " ++ (params join: ", ") println |
"arguments: " ++ (params join: ", ") println |
||
} |
} |
||
}; |
}; |
||
a = CatchThemAll new |
a = CatchThemAll new |
||
a foo |
a foo |
||
a bar |
a bar |
||
a we_can_do_it |
a we_can_do_it |
||
a they_can_too: "eat" and: "walk" |
a they_can_too: "eat" and: "walk" |
||
</lang> |
</lang> |