9 Jan
2010
9 Jan
'10
3:50 p.m.
How can I cast a duration into a string (e.g. for passing as a string argument)? Consider: // ============= fun void log(string message) { // do something to log the message } 1::second => dur d; log("the duration is " + d); // fails with "cannot perform '+' on object references" log("the duration is " + d.toString()); // fails with "type 'dur' does not have members" // ============= Same question for time objects. TIA. - Rob