set! in scheme-cps-convert.rkt: double quoted?

11 views
Skip to first unread message

Michael Bradshaw

unread,
Apr 13, 2013, 5:29:18 PM4/13/13
to utah-compiler...@googlegroups.com
In scheme-cps-convert.rkt


In T-c:

[`(set! ,var ,expr)
      (T-k expr (λ (aexp)
                  `(set-then! ,var ,aexp
                              `(,c (void)))))]

In T-k:

[`(set! ,var ,expr)
      (T-k expr (λ (aexp)
                  `(set-then! ,var ,aexp
                              ,(k '(void)))))]

I'm assuming T-k is correct but T-c should be (among various possibilities):

[`(set! ,var ,expr)
      (T-k expr (λ (aexp)
                  `(set-then! ,var ,aexp
                              (,c (void)))))] ;; No `

Or have I misunderstood things?

Matthew Might

unread,
Apr 13, 2013, 5:36:11 PM4/13/13
to Michael Bradshaw, utah-compiler...@googlegroups.com

Haven't tested your fix, but that looks right.


Sent from Mailbox for iPhone


--
You received this message because you are subscribed to the Google Groups "Utah Compilers, Spring 2013" group.
To unsubscribe from this group and stop receiving emails from it, send an email to utah-compilers-spri...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages