[Ecls-list] Arglist?

Marco Antoniotti marcoxa at cs.nyu.edu
Thu Feb 11 09:40:24 UTC 2010


On Feb 8, 2010, at 09:09 , Juan Jose Garcia-Ripoll wrote:

> ECL does not normally store information about a compiled function  
> lambda list, just for economy reasons -- it is not used anywhere in  
> ECL, not even in the debugger because function arguments are  
> directly registered by the function at run time if debug settings  
> are large enough.
>
> If such a function is really needed we would have to add an option  
> to the compiler so that it stores the lambda list or even the  
> function code, though the latter would be questionable, given the  
> bloat that would result.  In any case it would not be that difficult.

I believe that the arglist would be more than sufficient.  The actual  
code is not really needed.  I think you should then give a switch to  
ditch this information when you deliver a library or an executable on  
an as-needed basis.

After all this is a very useful introspective function to have during  
development and it'd make Slime and other tools' life much easier.

I'll leave the implementation details to you (it has been 13 years  
since I saw ECL guts, and it was EcoLisp then :) ).

Thanks

Marco






>
> Juanjo
>
> On Mon, Feb 8, 2010 at 4:18 AM, Daniel Herring  
> <dherring at tentpost.com> wrote:
> On Sun, 7 Feb 2010, Juan Jose Garcia-Ripoll wrote:
> > On Sun, Feb 7, 2010 at 5:18 PM, Marco Antoniotti  
> <marcoxa at cs.nyu.edu> wrote:
> >       is there a function ARGLIST in some package?
> >
> > You are probably not talking about (ext:argv), but rather about  
> something like CLISP's ARGLIST, which returns the lambda list of
> > a function. Am I right?
>
> Marco's CLAZY package needs access to function lambda lists.  I  
> pointed
> him to the Slime code for ECL; but its a huge mess and apparently  
> already
> broken.
>
> In clisp, this is ext:arglist; in sbcl,
> sb-introspect:function-lambda-list.
>
> - Daniel
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the  
> business
> Choose flexible plans and management services without long-term  
> contracts
> Personal 24x7 support from experience hosting pros just a phone call  
> away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>
>
>
> -- 
> Instituto de Física Fundamental, CSIC
> c/ Serrano, 113b, Madrid 28006 (Spain)
> http://juanjose.garciaripoll.googlepages.com
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the  
> business
> Choose flexible plans and management services without long-term  
> contracts
> Personal 24x7 support from experience hosting pros just a phone call  
> away.
> http://p.sf.net/sfu/theplanet-com_______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list

--
Marco Antoniotti






More information about the ecl-devel mailing list