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 86 other people reading this forum.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported

Login to reply

👍?
helpful
10:04pm Fri 6th Sep, ANONYMOUS

Hi, am I correct in assuming that the variables arg0, arg1, and so on can only appear in expressions? In other words, this is ok: x <- arg0 + 2 but this is not ok: arg0 <- 2 function process arg1 # do something Thank you


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

Login to reply

👍?
helpful
8:27pm Wed 11th Sep, Joshua N.

ANONYMOUS wrote:
> Hi, am I correct in assuming that the variables arg0, arg1, and so on can only appear in expressions? > > In other words, this is ok: > > x <- arg0 + 2 > > but this is not ok: > > arg0 <- 2 > > function process arg1 > # do something > > > Thank you
Yes, that seems correct.


SVG not supported

Login to reply

👍?
helpful
10:51am Thu 12th Sep, ANONYMOUS

is it okay to not allow defining identifier names of the form "arg<number>" at all?


SVG not supported

Login to reply

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

ANONYMOUS wrote:
> is it okay to not allow defining identifier names of the form "arg<number>" at all?
Yes. Otherwise, there would be no way to differentiate between a normal variable and a command line argument.

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