Subject: assigning operators - case sensitivity problem?
From: Robert Dodier
Date: Tue, 29 Mar 2005 08:13:51 -0800 (PST)
> (defmfun $postfix (operator &optional (lbp 180.)
> (lpos '$any)
> (pos '$any))
> (upcase operator) ;; <-----
> (def-operator operator pos lbp lpos () () t ()
> '(led . parse-postfix) 'msize-postfix 'dimension-postfix () ))
>
> where UPCASE intentionally upcases the operator.
> This also affects $prefix, $infix, $nary, $matchfix, and $nofix.
That looks like a bug to me. Perhaps it was intended to
mimic the behavior of built-in symbols in the days before
case sensitivity, when sin and SIN were the same but user
variables or functions mysin and MYSIN were different.
I don't see a motivation for case insensitivity of user-
defined operators at present; if there's no explanation
in sight let's consider disabling this feature.
For what it's worth,
Robert Dodier
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/