Hi Peter C, "(define (xxx" will delay evaluation until some procedure call it.
Best Regards, Paul Tan -----Original Message----- From: Peter Clifton <[EMAIL PROTECTED]> To: gEDA user mailing list <geda-user@moria.seul.org> Sent: Fri, 4 Jan 2008 7:32 pm Subject: Re: gEDA-user: gnetlist l and m options On Fri, 2008-01-04 at 22:23 -0500, Paul Tan wrote: > Hi Peter C, > > Have you tried "(define (xxx " instead of "(define xxx" and/or > setting flag indication? No, I'm by no way knowledgeable about scheme. If you could explain what these do, then by all means, I will try. Btw.. it was the packages list (and similar) which gave me problems: (define packages (gnetlist:get-packages "placeholder")) This evaluates immediately on loading gnetlist.scm, calling a C function in gnetlist which I wasn't ready (at this point) for it to be calling. I tried playing with (delay ...), but this gave me a promise object rather than (as I'd anticipated) some magic way of deferring evaluation until the first usage. > Best Regards, > Paul Tan > > -----Original Message----- > From: Peter Clifton <[EMAIL PROTECTED]> > To: gEDA user mailing list <geda-user@moria.seul.org> > Sent: Fri, 4 Jan 2008 5:55 pm > Subject: Re: gEDA-user: gnetlist l and m options > > > > On Fri, 2008-01-04 at 20:19 -0500, Paul Tan wrote: > > Hi Steve, > > > > I am not using that feature currently, but its a nice feature and I > > might > > use the post-backend feature in the future. > > Tangentially related.... > > To fix the spice-sdb slotting feature (patches not committed yet, but > awaiting comments), I had to explicitly split gnetlist.scm into two > parts. I moved gnetlist.scm and the netlist backend to load BEFORE > traversing the board, and have gnetlist-post.scm run AFTER. > > This is because I introduced (propose to introduce) a scheme hook for > determining the UREF of a component. This is determined during schematic > traversal time, so at this point, the backend must have loaded. > However.. gnetlist.scm also has some (define ...) code which is > evaluated as soon as gnetlist.scm is loaded, and MUST NOT be run until > after traveral. (This was the bit I moved to gnetlist-post.scm). > > > -- > Peter Clifton > > Electrical Engineering Division, > Engineering Department, > University of Cambridge, > 9, JJ Thomson Avenue, > Cambridge > CB3 0FA > > Tel: +44 (0)7729 980173 - (No signal in the lab!) > > > > _______________________________________________ > geda-user mailing list > geda-user@moria.seul.org > http://www.seul.org/cgi-bin/mailman/listinfo/geda-user > > > ________________________________________________________________________ > More new features than ever. Check out the new AIM(R) Mail ! - > http://webmail.aim.com > > > _______________________________________________ > geda-user mailing list > geda-user@moria.seul.org > http://www.seul.org/cgi-bin/mailman/listinfo/geda-user -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) _______________________________________________ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user ________________________________________________________________________ More new features than ever. Check out the new AIM(R) Mail ! - http://webmail.aim.com _______________________________________________ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user