Re: [q-lang-users] Q Question
Brought to you by:
agraef
From: ww <wwa...@ea...> - 2004-10-20 12:36:48
|
----- Original Message ----- From: "Larry Gregg" <lg...@ac...> To: <q-l...@li...> Sent: Tuesday, October 19, 2004 10:44 PM Subject: [q-lang-users] Q Question > People: > > I have downloaded Q, and am trying the following, using Qpad, but I get > an error: > > ==> fac N = N*fac (N - 1) if N>0; > ! Syntax error > >>> fac N = N*fac (N - 1) if N>0; > ^ > I copied this from the qdoc.pdf. This occurs using the interpreter, > but I imagine it would be the same with the compiler. > > Thanks, > Larry Gregg Hi Larry, I did a cut-n-paste of the offending line and my Qpad (ver 5.5) session accepted it w/o an error report. To finish the definition you'll need to expand fac to; fac 0 = 1; fac N = N*fac (N - 1) if N>0; Could the problem w/ your session be on the previous line? Regards, Walt |