Respond to an unknown method call: Difference between revisions

Content added Content deleted
mNo edit summary
(→‎{{header|D}}: Add Déjà Vu example)
Line 164: Line 164:
Tried to handle unknown method 'grill'
Tried to handle unknown method 'grill'
Tried to handle unknown method 'ding', with arguments: dong 11 </pre>
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}}==
=={{header|E}}==