[Ecls-list] More changes
rschlatte at ist.tu-graz.ac.at
Fri Dec 21 00:58:01 UTC 2001
Hannu Koivisto <azure at iki.fi> writes:
> Juan Jose Garcia-Ripoll <Juan.Ripoll at mpq.mpg.de> writes:
> > - Support for si::mkdir (by Rudy Schlatte)
> What is the purpose of this function? Why isn't standard
> ensure-directories-exist enough (ECL doesn't seem to have it, but
> that's besides the point)?
> I would understand if this function resided in some POSIX package
> and provided full POSIX functionality (now mode is hardwired to
> 0777 and there is no way to get information about a possible error
> situation) but as it is now, I can't see any justification for it.
I am trying to get clocc running, adding functionality to ecl where it
is needed. So, the functions I add will be very similar to the ones
provided by clocc:;port, lacking in generality. But I do understand
and respect your POV as well; so if anybody comes up with a richer
interface (and/or a way to achieve things within common lisp), I'll be
glad to change things.
So, suggestions, anybody? (For an overview of the functions I'd like
to add, look at the port library in clocc; mostly, directory-related
filesystem ops and a bunch of networking support.)
> (FWIW, I also strongly oppose that this kind of functions are
> written in C and not in Lisp using FFI.)
On what grounds? It seems to me that the difference between writing
things for dpp and for ffi:defcbody is just the file extension and
style of writing function headers. Could you expand on this?
OTOH, I'd like to use ffi:defunc; the docstring indicates that this
macro allows interleaving of Lisp and C statements/forms. That would
make e.g. raising an error less painful. When I tried it last time,
it looped endlessly during compilation, but that might have been my
wacky source tree. I'll try it out again and submit some
documentation if I get it running.
More information about the ecl-devel