[Oberon] Anonymous procedure?
skulski at pas.rochester.edu
Fri Jan 18 03:35:39 CET 2019
>Can an anonymous procedure be assigned to a procedure
>variable in any Oberon language. Illustrated hypothetically
>(* Assign anonymous null procedure to Append. *)
>PROCEDURE NullifyAppend*(); BEGIN Append := PROCEDURE BEGIN END END NullifyAppend;
What is the motivation?
If I am not mistaken, you can assign NIL, which becomes an anonymous procedure which stops the execution when called. Is this what you need?
More information about the Oberon