-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lab 5 Question #90
Comments
Explicit means being verbose about something. Implicit means omitting something because that something is expected or obvious. If you notice, there is an implicit termination IS-STATE-VIRGINIA.
IF USA-STATE = 'Virginia' THEN
ADD 1 TO VIRGINIA-CLIENTS. <---- here, the period
END-IF. But, the compiler doesn't know what you want to achieve. For the compiler the implicit termination is enough, so it complains that the it END-IF is not necessary. There are two ways of resolving that compiler error:
|
Ah...Totally missed the period sign. That's exactly what I needed to know. Thanks! |
@pineconeman09 - My advice, get rid of ALL unnecessary periods. They are just not necessary any more. And, more good advice for those starting out:
|
I am a little confused on this lab. Although I was able to compile the CBL0007J file with no errors, I still don't understand why the original source code would not be able to compile without errors. The only thing I did to get a no-error compile was remove the END-IF terminator at the end of the paragraph in question. That being said, documentation says that IF statements are explicitly terminated by using END-IF. What am I missing here?
Many thanks.
The text was updated successfully, but these errors were encountered: