[Ecls-list] Lisp errors & ERRNO

Matthew Mondor mm_lists at pulsar-zone.net
Mon Mar 15 18:33:30 UTC 2010


On Mon, 15 Mar 2010 19:25:59 +0100
"Tobias C. Rittweiler" <tcr at freebits.de> wrote:

> Matthew Mondor <mm_lists at pulsar-zone.net>
> writes:
> 
> > On Mon, 15 Mar 2010 19:10:44 +0100
> > "Tobias C. Rittweiler" <tcr at freebits.de> wrote:
> >
> >> Juan Jose Garcia-Ripoll
> >> <juanjose.garciaripoll at googlemail.com> writes:
> >> 
> >> > On Mon, Mar 15, 2010 at 6:31 PM, Tobias C. Rittweiler <tcr at freebits.de>wrote:
> >> >
> >> >>
> >> >> SYSCALL-ERROR is probably a better name; the slot reader name
> >> >> SYSCALL-ERROR-ERRNO looks way better than the stuttering
> >> >> ERROR-WITH-ERRNO-ERRNO.
> >> >>
> >> >>
> >> > This name also has the advantage that it can be reused for other system
> >> > errors, such as Windows errors.
> >> >
> >> > Juanjo
> >
> > I agree about the name; I have something similar for use in my syscalls
> > library (attached)
> 
> What do you use the OBJECTS slot for?

It's mostly to pass the important arguments so that they're easily
visible as part of the error message.  For instance, FSTAT invoking
fstat(2) signals a condition using:
(unix-error "fstat" err `(,fd))
-- 
Matt




More information about the ecl-devel mailing list