Open efcasado opened 10 years ago
This will be implemented as a run-time check.
The generated code will be something similar to
case is_weaveable(M, F, A, Aspects) of
true ->
weave(M, F, ["Hello, World!~n"], Aspects);
false ->
M:F("Hello, World!~n")
end
Dynamic function calls are function calls where the exact function to be executed is only known at run-time.
The following are some examples of dynamic function calls:
At run-time, M and F might be set to
io
andformat
, respectively.