1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use std.*; let show_current_context = () => ( print (current string); ); ( with "123"; show_current_context(); ); ( with "456"; with "shadow"; show_current_context(); ); show_current_context(); # This should not compile (no context available)