This is driving me nuts...
I like to simply copy an object:
class MO2Data { var front_tyre_pressure; ... } class MuscleOxygenDataPage { function parse(payload, data) { var data_old = data; // <-- this one does a reference only data.front_tyre_pressure = payload[1] * 0.05; ... if (!data_old.equals(data)) { System.println( "update display" ); } } }
There is no copy example in the documentation and even Google does not know about "Monkey C copy".
Can anyone help?