|
ct:defctype within (LET: msg#00090lisp.corman
I'm getting an error when I try create a ctype within a call to LET, or even pre-LET (but still within the scope of SET-COLORS). (defun set-colors () (let ( (colors (make-hash-table))) (ct:defctype colour-arrayu (GLubyte 4)) (mapcar #'(lambda (x) (setf (gethash x colors) (ct:malloc (ct:sizeof 'colour-arrayu)))) '(white red green blue yellow black orange purple)) (values colors))) ;;; An error occurred in function MACROEXPAND: ;;; Error: Invalid C type specifier: COLOUR-ARRAYU ... There is no error when (ct:defctype colour-arrayu (GLubyte 4)) is called at the top level. ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/xaxhjB/hdqFAA/xGHJAA/SyjtlB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: cormanlisp-unsubscribe@xxxxxxxxxxxxxxx Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: #! ... !#: 00090, lcluke |
|---|---|
| Next by Date: | Re: ct:defctype within (LET: 00090, Chris Double |
| Previous by Thread: | 2.01 patchesi: 00090, JP Massar |
| Next by Thread: | Re: ct:defctype within (LET: 00090, Chris Double |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |