Anonymous user
Respond to an unknown method call: Difference between revisions
Respond to an unknown method call (view source)
Revision as of 16:06, 18 October 2013
, 10 years ago→{{header|D}}: Add Déjà Vu example
mNo edit summary |
(→{{header|D}}: Add Déjà Vu example) |
||
Line 164:
Tried to handle unknown method 'grill'
Tried to handle unknown method 'ding', with arguments: dong 11 </pre>
=={{header|Déjà Vu}}==
The function <code>set-default</code> is useful here:
<lang dejavu>}
labda:
print "One!"
:one
labda:
print "Two!"
:two
local :obj {
labda:
print "Nope, doesn't exist."
set-default obj
obj!one
obj!two
obj!three
</lang>
{{out}}
<pre>One!
Two!
Nope, doesn't exist.</pre>
=={{header|E}}==
|