|
D.15.22.3 copyTask
Procedure from library tasks.lib (see tasks_lib).
- Usage:
- copyTask(t), t task
- Return:
- a copy of t.
- Note:
- 'task t1 = copyTask(t2);' is not the same as 'task t1 = t2;'. After
the latter command, t1 points to the same object as t2; any changes
to t2 will also effect t1. In contrast to this, copyTask() creates a
new independend task.
A task whose state is 'started' cannot be copied.
Example:
See also:
compareTasks;
createTask;
getArguments;
getCommand;
getResult;
getState;
killTask;
printTask.
|