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


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported 6:45pm Wed 4th Sep, Mark LN.

what happens when the function takes a string as a parameter and the string contains bracket and commas? e.g. call function("This will break, your idea (maybe?)")


SVG not supported 8:38pm Tue 3rd Sep, Mark LN.

Yup sure - now you got me thinking about adding that as well Shouldn't be too hard I guess...


SVG not supported 12:56pm Tue 3rd Sep, Mark LN.

Instead of passing a function to another function, the first function can just be evaluated in the parameter expression like this function add a b return a b function two return 2 print add(1, two())


SVG not supported 8:53pm Mon 2nd Sep, Mark LN.

That would be hard to do without building a full-blown syntax parser, how would you figure out how many parameters are in this function call function name((x 1)-2, function2((a-1),b))


SVG not supported 8:44pm Mon 2nd Sep, Mark LN.

Ok wow - the markdown is a bit different to what I am used to using. Lets try that again because there doesn't seem to be a way to edit my post Working code 2 is printed 3 is printed afterwards value - 1 function increment value - value 1 ...


SVG not supported 8:39pm Mon 2nd Sep, Mark LN.

Hey, Thought we could share interesting and weird ml code to test our work. Here is one I came up with mlcode 2 is printed 3 is printed afterwards value - 1 function increment value - value 1 Function call with parens right against the na...

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