Skip to content

Commit 49ea869

Browse files
author
btj12
committed
Merge branch 'fix-super' into 'master'
Fix super See merge request btj12/Interpreter!82
2 parents 7b43375 + ff92b31 commit 49ea869

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

state-manipulation.scm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
(cond
164164
((G-initialized? '.this state) (get-value-from-pair (G-value-lookup->value_state '.this state cfuncsinstance)))
165165
(else (get-value-from-pair (G-value-lookup->value_state '.class state cfuncsinstance))))))
166-
(trace get-current-class)
166+
;(trace get-current-class)
167167
(define get-super-class
168168
(lambda (currentclass state)
169169
(cond
@@ -194,7 +194,7 @@
194194
(push-variable-as-literal->state '.this
195195
(if preserve-current-class
196196
current-class
197-
(get-value-from-pair (G-value-lookup->value_state '.class super-popped-state cfuncsinstance)))
197+
(get-super-class current-class state))
198198
(G-add-empty-scope-to-state->state
199199
(G-push-stack-divider-to-state->state current-class
200200
(G-pop-scope-to-function-or-class->state
@@ -536,8 +536,7 @@
536536
(define handle-this-expr
537537
(lambda (state)
538538
(list (extract-new-class-instance-state state) state)))
539-
(trace handle-this-expr)
540-
;(trace G-eval-atomic-statement->value_state)
539+
541540
; STUB
542541
(define dot-expr?
543542
(lambda (arglist)

0 commit comments

Comments
 (0)