It's UWAweek 47

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 828 articles.
Currently 94 other people reading this forum.


 UWA week 38 (2nd semester, week 8) ↓
SVG not supported

Login to reply

👍?
helpful
9:43am Wed 18th Sep, ANONYMOUS

Hello, Just to confirm. Do we not have to validate any expressions which are assigned to a variable. E.g. x <- y + 2. Do we need to validate 'y + 2', or do we only validate identifiers used in an expression? Thanks


SVG not supported

Login to reply

👍?
helpful
9:51am Wed 18th Sep, Joshua N.

ANONYMOUS wrote:
> Hello, > > Just to confirm. Do we not have to validate any expressions which are assigned to a variable. > E.g. x <- y + 2. > Do we need to validate 'y + 2', or do we only validate identifiers used in an expression? > > Thanks
Don't need to validate y+2 since it is an expression, but you do need to validate the assignment.


SVG not supported

Login to reply

👍?
helpful
9:55pm Wed 18th Sep, Samay G.

What is the expression is x <- y+2 But y is not declared so we have to check and declare it, is not that expected?


SVG not supported

Login to reply

👍?
helpful
10:24pm Thu 19th Sep, Joshua N.

"Samay Gupta" <23*6*5*8@s*u*e*t*u*a*e*u*a*> wrote:
> What is the expression is > > x <- y+2 > > But y is not declared so we have to check and declare it, is not that expected?
Yes. That is the only thing you need to check. If you see a variable, you don't recognize you must replace it with 0.

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