Assignment 11: Wrong testcase?

plo1234
BASIC-Programmierer
BASIC-Programmierer
Beiträge: 116
Registriert: 14. Nov 2009 18:51

Assignment 11: Wrong testcase?

Beitrag von plo1234 »

Hey,
could somebody explain this testcase to me? Why should that be evaluated to Nothing? Shouldn't it be NumV(6)?

Code: Alles auswählen

interp (AppE (NumE 6) (NumE 5)) []
  == Nothing
thanks!

LordHoto
BASIC-Programmierer
BASIC-Programmierer
Beiträge: 135
Registriert: 14. Dez 2009 17:00

Re: Assignment 11: Wrong testcase?

Beitrag von LordHoto »

plo1234 hat geschrieben:Hey,
could somebody explain this testcase to me? Why should that be evaluated to Nothing? Shouldn't it be NumV(6)?

Code: Alles auswählen

interp (AppE (NumE 6) (NumE 5)) []
  == Nothing
thanks!
I didn't check the actual definition of the language but in our old language you couldn't apply a value like (NumE 6), so it seems logical to evlauate to Nothing in this case.
Compiler 1 Tutor WS 12/13

plo1234
BASIC-Programmierer
BASIC-Programmierer
Beiträge: 116
Registriert: 14. Nov 2009 18:51

Re: Assignment 11: Wrong testcase?

Beitrag von plo1234 »

:D you are totally right...
Thanks

Antworten

Zurück zu „Archiv“