Jump to content

Respond to an unknown method call: Difference between revisions

→‎{{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}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.