The documentation is explicit that definline observes defmacro-like  
semantics.

A.K.A. "What Rich said" :-)

Stu

> Hello,
>
> I am not sure to agree.
>
> If I get it right, definline is used to replace defn for function that
> we want to be inlined.
>
> So replacing defn by definline should have no impact on the semantic  
> of
> the program.
>
>
> Best regards,
>
>
> Nicolas.
>
> On Thu, 2009-07-30 at 05:34 -0700, Rich Hickey wrote:
>>
>>
>> On Jul 30, 1:29 am, John Harrop <jharrop...@gmail.com> wrote:
>>> user=> (definline addsq [a b] `(+ (* ~a ~a) (* ~b ~b)))
>>> #'hxr.clj.util/addsq
>>> user=> (addsq (do (println "a evaluated") 1) 1)
>>> a evaluated
>>> a evaluated
>>> 2
>>
>> You write the expansion, so you are in control of multiple  
>> evaluation.
>>
>> Rich
>>>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to