test_reflector v0.1.1 TestReflector.Field

def_reflector_fld/3

  • the message reflected back depends on the arity when called
  • my_function() sends back :name_of_function
  • my_function(arg1) sends back {:name_of_function, arg1}
  • my_function(arg1, arg2) sends back {:name_of_function, arg1, arg2}
  • the function return value is either

    • the default defined in the macro call, or
    • whatever term was stashed for that scope and function name

Link to this section Summary

Link to this section Functions

Link to this macro

def_reflector_fld(scope, name, default)

(macro)