2 Jun 2003 18:01
Type Checking
Sean Ross <sdr <at> jhb.ucs.co.za>
2003-06-02 16:01:57 GMT
2003-06-02 16:01:57 GMT
In this code (defun foo (x) (list x)) (defun bar (x) (+ x (foo x))) is it possible to get the compiler to complain about the result of (foo x) being a list and not a number without resorting to (declare ftype) statements? I'm trying with this compilation policy COMPILATION-SPEED = 1 DEBUG = 1 SAFETY = 3 SPACE = 1 SPEED = 1 INHIBIT-WARNINGS = 0 Thanks Sean. ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5(Continue reading)
.
RSS Feed