Error Question

8 views
Skip to first unread message

Ben Draut

unread,
Dec 10, 2013, 11:46:29 AM12/10/13
to Jay McCarthy, BYU CS 330 Fall 2013
Can you help me understand what this means?

begin (possibly implicit): empty form is not allowed
  in: (begin)

There must be an implicit begin in my function, but I'm not sure what this means.

I'm doing something like this:

(define (lcs-length s1 s2)
  (define t (build-table ....))
  (get answer from t))

Jay McCarthy

unread,
Dec 10, 2013, 11:52:58 AM12/10/13
to Ben Draut, BYU CS 330 Fall 2013
You get that error when a function only has definitions in its body:

(define (f)
(define a 1)
(define b 2))

My guess is that your "get answer from t" is a definition or is really
inside the t's ()s but you can't notice because of indentation. If you
want to send it directly to me, I'm sure I could eyeball it.

Jay
--
Jay McCarthy <j...@cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93
Reply all
Reply to author
Forward
0 new messages