[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Jul 14 21:41:07 1993 
Subject:Re: quickie test 
From:Colin Shearer 
Volume-ID:930714.02 


> Here is a quickie pop11 test: don't think too long about this.
>
> What happens if you evaluate the following?
>
> : [a], {% hd() %} =>
>
> What happens if you evaluate this instead?
>
> : [a], [% hd() %] =>
>
> I hope some of you were a little surprised!

Most interesting. The VM code shows the different construction techniques, and
hence the reason for the surprise (for me, in the vector case) :


    {% hd() %} gives :                 [% hd() %] gives :

    NEW_LVAR                           PUSH    popstackmark
    CALL    stacklength                CALL    hd
    POP     tmp_lvar_1                 CALL    sysconslist
    CALL    hd
    PUSH    tmp_lvar_1
    CALL    sysvecons


Colin