Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.8.2
-
Fix Version/s: 0.9
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Ability to define macros inside other macros with context sensitive name resolution:
macro foo:
macro bar:
yield [| print "foo.bar" |]
yield foo.Block
macro choco:
macro bar:
yield [| print "yummy" |]
yield choco.Block
foo:
bar # foo.bar
choco:
bar # yummy
Superb.
Would it be possible to have nice error reporting that displays the possible 'parents' for the macro?