Re: multiple-value-bind only accepts symbols



Juho Snellman wrote:
Because that's not what binding means (have a look at the CLHS glossary).

Ok, but then the question only becomes, why do we have "multiple-value-bind" rather than something like "multiple-value-setf". But with the solution you provided, I can see that question is stupid.



The less ugly way to write this is:

(setf (values (slot-a x) (slot-b x)) (some-function-that-returns-two-values))

Nice! My mind has not yet been warped enough to the Lisp way so that I could think of this by myself. I find this beautiful. Thank you!
.




Relevant Pages

  • Re: Chimps And Their Control Of Their Vocalizations
    ... Mario Petrinovich wrote: ... it IS stupid to assume this behavior ... you have a beautiful table somewhere. ... > which tells that this table makes them vomit. ...
    (sci.anthropology.paleo)
  • Re: PHP for Dummies (Me being the dummy)
    ... > Ken, you are a beautiful, beautiful man. ... > I, am a stupid, stupid man. ... in an external file and calling that file ... using includeor requireat the start of each page within the same PHP ...
    (comp.lang.php)
  • Re: Chimps And Their Control Of Their Vocalizations
    ... > Mario Petrinovich: ... it IS stupid to assume this behavior ... you have a beautiful table somewhere. ... which tells that this table makes them vomit. ...
    (sci.anthropology.paleo)
  • Re: Yuav Niam Yau?
    ... study found that men lost judgment acuteness when they saw beautiful ... The conclusion is that men in general make stupid decisions while ... For example, car companies ... post beautiful women in showrooms to make sales because men go stupid ...
    (soc.culture.hmong)
  • Re: ABC Family renews "Wildfire"
    ... ANIM8Rfsk wrote: ... Not exactly - I haven't seen either this show or "Beautiful People" ... since ABC Family got stupid and started airing both shows against ...
    (rec.arts.tv)