2.6.1. Forgetting Macros

You can forget macros defined in the current scope with the forget statement. If no arguments are given, all macros defined in the current scope are forgotten.
Start felix section to tut/macros/mac-2.06.01-0.flx[1 /1 ]
     1: #line 703 "./lpsrc/flx_tut_macro.pak"
     2: #include <flx.flxh>
     3: macro val hello = "Hello";
     4: macro val place = "world";
     5: macro fun greet() = hello " " place "!\n";
     6: {
     7:   macro val hello = "Hi there";
     8:   macro val place = "locality";
     9:   print (greet());
    10:   macro forget place;
    11:   print (greet());
    12:   macro forget;
    13:   print (greet());
    14: };
    15: 
    16: print (greet());
End felix section to tut/macros/mac-2.06.01-0.flx[1]
Start data section to tut/macros/mac-2.06.01-0.expect[1 /1 ]
     1: Hi there locality!
     2: Hi there world!
     3: Hello world!
     4: Hello world!
End data section to tut/macros/mac-2.06.01-0.expect[1]