[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Import?
From: |
Edgar Toernig |
Subject: |
Re: Import? |
Date: |
Fri, 10 Sep 2004 06:35:24 +0200 |
Jason Whittle wrote:
>
> @SysInclude{ diag }
> @SysInclude{ tbl }
> @SysInclude{ doc }
>
> import @BasicSetup
> def @Charm { @SubSection }
>
> [gives: symbol @SubSection unknown or misspelt]
extend @Text @Section
def @Charm { @SubSection }
puts SubSection in scope but now you'll get an error for
the missing body of SubSection. Possible[1] solution:
extend @Text @Section
def @Charm body x { @SubSection { x } }
> I know I should be using a macro for a simple substitution
Indeed :-)
Ciao, ET.
[1] At least it'll parse. I'm not an Lout expert...