From: Sam S. <sd...@gn...> - 2011-03-02 21:58:42
|
> * Zach Beane <knpu@knpu.pbz> [2011-03-02 14:31:43 -0500]: > > When I evaluate this in CLISP 2.49: > > (compile nil (lambda () (directory "/" 'xach t :allow-other-keys t))) > > I get this WARNING: > > WARNING: keyword XACH is not allowed for function DIRECTORY. > The only allowed keywords are :IF-DOES-NOT-EXIST, :CIRCLE and > :FULL. > > I expected the presence of :allow-other-keys to prevent any warning > about keyword allowed-ness. Should this warning be eliminated if > :allow-other-keys is passed? note that (compile nil (lambda () (directory "/" :allow-other-keys t 'xach t))) only says WARNING : DIRECTORY: ignored keyword XACH T Obviously, the behavior should be the same in both cases. (Please file a bug report on SF!) Also, the warning should be a style-warning (since the allow-other-keys argument is a constant and we know for a fact that there will be no problems at run time). One might argue that the explicit :allow-other-keys should disable the warning altogether. I am not sure that this is the case. If you want to avoid the warning, write (directory .... #+cmu :cmu-specific-option #+cmu cmu-specific-option-argument) instead of (directory .... :cmu-specific-option cmu-specific-option-argument :allow-other-keys t) -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.3 (Final) X http://camera.org http://pmw.org.il http://mideasttruth.com http://iris.org.il http://palestinefacts.org http://jihadwatch.org http://memri.org "A pint of sweat will save a gallon of blood." -- George S. Patton |