Extending Functionality: an expedient and questionable approach
Chris Pressey
chris_pressey@REDACTED
Thu Mar 13 23:23:56 CET 2003
OK, I finally found a way to lock up the emulator with this: use this
in square.erl:
undefined_function(Function, Args) ->
apply(?MODULE, Function, Args).
But is this really so unexpected? It's a lot like saying
foo() ->
foo().
Which we all know not to do :)
As long as there's some termination to the chain of
undefined_function/2 calls, it seems OK - i.e. there is no
rectangle:undefined_function/2. Which makes some sense.
Hmmm.
-Chris
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
More information about the erlang-questions
mailing list