Received: by 10.68.232.1 with SMTP id tk1mr5565150pbc.7.1349848862846; Tue, 09 Oct 2012 23:01:02 -0700 (PDT) Received: by 10.68.189.37 with SMTP id gf5mr1792938pbc.16.1349848862829; Tue, 09 Oct 2012 23:01:02 -0700 (PDT) Path: t10ni23613332pbh.0!nntp.google.com!kt20no17170211pbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.lisp Date: Tue, 9 Oct 2012 23:01:02 -0700 (PDT) In-Reply-To: <45313195-48ee-4e03-867c-eeb46d5f258b@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=169.232.102.151; posting-account=oNe0NwoAAAAQMfYwiNQZE_QjGJiefUnU NNTP-Posting-Host: 169.232.102.151 References: <91be313c-8300-44c5-bec1-178017b1395a@googlegroups.com> <45313195-48ee-4e03-867c-eeb46d5f258b@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <905247d9-32fa-4120-b9bb-11374d633517@googlegroups.com> Subject: Re: CommonQt enums and operators From: Eric Eaton Injection-Date: Wed, 10 Oct 2012 06:01:02 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Monday, October 8, 2012 9:21:03 PM UTC-7, budden wrote: > Hi! I know nothing about CommonQt, but, some general hints: o know what i= s *STAR* try (describe '*star*), (describe *star*), use inspector of your l= isp IDE etc; Qt reader (#_) _should_ be case sensitive while CL reader is = not. Also, it _might_ treat "*" in special way. It is likely to misinterpre= t *star*, try *STAR* or, better, just give another name to your var: >=20 > (defparameter |Star| ...) >=20 >=20 >=20 > (#_operator+=3D Star (#_new QSize 3 3)) Thanks for your reply. The reader macro is for executing foreign functions. I am reasonably sure t= hat it only reads the word following it, which is the name of the C++ metho= d to be called. Overloading +=3D in C++ is done by overloading the function= named operator+=3D. So I assumed it would be the same in commonqt. It appears that there is a function #_operator, and the +=3D is being evalu= ated normally as the first argument and of course it is unbound. I have to = figure out how to use it. There is no documentation which I can find on #_o= perator.