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.
6 articles posted by this person
Showing 6 of 830 articles.
Currently 58 other people reading this forum.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported 9:15pm Thu 5th Sep, Daniel J.

Theoretically the language description limits it to 49; there's a maximum of 50 unique identifiers per file, and so if you had a single function there would be 1 identifier for the function name and a maximum of 49 for the function parameters. Althoug...


SVG not supported 1:54pm Wed 4th Sep, Daniel J.

The description of ML allows for functions to have no return statements. If I have a function like function noreturn a b print a b print 1 noreturn(1, 2) Obviously the inner print will print 3, but what about the outer print? Is it expecte...


SVG not supported 1:51pm Tue 3rd Sep, Daniel J.

Thanks, I understand that is an option, but I do want to know whether the language actually permits passing references to functions, because the syntax guide suggests it does, and the language description doesn't seem to forbid it.


SVG not supported 8:51am Tue 3rd Sep, Daniel J.

For clarification, it should be print add(1, two) I should read things more carefully.


SVG not supported 8:48am Tue 3rd Sep, Daniel J.

If we pass a function into another function as an argument, is it expected that we can call it, or should it be treated as an un-declared variable, ie 0? function add a b return a b() function two return 2 print add 1 two Should this produc...


 UWA week 35 (2nd semester, week 6) ↓
SVG not supported 6:43pm Sat 31st Aug, Daniel J.

Hey, I'm not Chris, but I believe that the description of function declarations found under the ml syntax guide allows this. These two lines specifically are relevant (...) means zero or more function identifier ( identifier )

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