[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
errno values and other CPP constants
From: |
Tom Lord |
Subject: |
errno values and other CPP constants |
Date: |
Sun, 5 Aug 2001 23:31:26 -0700 (PDT) |
I've found that it makes for a very nice interface to represent errno
values and other CPP constants as symbols (e.g. 'ENOENT).
A nice convention for errno is to reserve "%" as the first character
in the name of any function that might return an errno value.
The procedure "%%" is used to convert errno returns to exceptions:
(%open "no-such-file") => ENOENT
(%% %open "no-such-file") => ...causes exception...
-t
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- errno values and other CPP constants,
Tom Lord <=