It's UWAweek 42 (2nd semester, week 12)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying the 4 articles in this topic
Showing 4 of 738 articles.
Currently 191 other people reading this forum.


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported

Login to reply

👍?
helpful
10:54am Tue 10th Sep, ANONYMOUS

Hi, I was wondering if empty lines are allowed in ml and if they are, will the empty lines inside a function definition start with a tab?


SVG not supported

Login to reply

👍x1
helpful
8:24pm Wed 11th Sep, Joshua N.

ANONYMOUS wrote:
> Hi, I was wondering if empty lines are allowed in ml and if they are, will the empty lines inside a function definition start with a tab?
Hi I don't believe empty lines are allowed in ml, all the sample files have no empty lines and instead use a comment to create an "empty" line.


SVG not supported

Login to reply

👍?
helpful
10:58pm Wed 11th Sep, ANONYMOUS

Hi, Thanks for replying! I have another question, if comment is inside a function definition does it have to start with a tab character? My question was more about if I can completely rely on the tab character to mark the end of function definitions.


SVG not supported

Login to reply

👍?
helpful
9:09pm Thu 12th Sep, Joshua N.

ANONYMOUS wrote:
> Hi, Thanks for replying! I have another question, if comment is inside a function definition does it have to start with a tab character? > > My question was more about if I can completely rely on the tab character to mark the end of function definitions.
I believe Chris said either in the forum or the project sheet that all statements must start at the lefthand most side of the file unless it is a statement in a function. Not sure where a comment could appear (because technically comments aren't "part" of the function definition). You could just check if the first character is either a tab or a comment (if a comment just ignore the line), otherwise if a tab process as normal (if you see a comment then ignore the rest of the statement).

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy