good7.fun in lab3

29 views
Skip to first unread message

Ioannis Sotiriadis

unread,
Mar 4, 2012, 6:10:45 AM3/4/12
to proglang-course-2012
Hi,
My lab partner and I have a problem in Lab 3 with good7.fun. Instead
of getting a result 1 we get infinite loop. The thing is that it seems
the number 111111 is too big. it works properly with a smaller number
instead. Should we try to fix it and have our stack not to overflow or
is it ok like that? (we are coding in Java)

Aarne

unread,
Mar 5, 2012, 11:21:27 AM3/5/12
to proglang-course-2012
Right: this can take a long time with call by name but should be
almost immediate with call by value. So it's enough if you manage to
run it with call by value. Can you see any difference? You can also
try with a smaller number and see what the difference is then.

Aarne.
Reply all
Reply to author
Forward
0 new messages