This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: macros and compilation


Some other stuff about this...
I tried to move the (module-export ) form at the end of the source file;
both kinds of compilations were OK, but if I try to eval a form with the
macro the module bindings seem lost.
With the code I posted this is what I get:

#|kawa:1|# (require <macmod>)
#|kawa:2|# (das-search 'test)
gnu.mapping.UnboundSymbol: Unbound symbol %das-search
        at gnu.mapping.Environment.getChecked(Compiled Code)
        at kawa.standard.ScmEnv.getChecked(Compiled Code)
        at gnu.expr.ReferenceExp.eval(Compiled Code)
        at gnu.expr.ApplyExp.eval(Compiled Code)
        at gnu.expr.ModuleExp.evalModule(Compiled Code)
        at kawa.Shell.run(Compiled Code)
        at kawa.Shell.run(Compiled Code)
        at kawa.Shell.run(Compiled Code)
        at kawa.repl.main(Compiled Code)

I don't know if this is the behaviour I should expect...
I don't need to access %das-search directly but the macro does.

Thanks 
	Marco

-- 
	(--cafe babe--) 
Marco Vezzoli	marco.vezzoli@st.com
CR&D Intranet Developement   STMicroelectronics
tel. +39 039 603 6852 fax. +39 039 603 5055

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]