annotate tango/example/cluster/task.d @ 132:1700239cab2e
trunk
[svn r136] MAJOR UNSTABLE UPDATE!!!
Initial commit after moving to Tango instead of Phobos.
Lots of bugfixes...
This build is not suitable for most things.
author |
lindquist |
date |
Fri, 11 Jan 2008 17:57:40 +0100 |
parents |
|
children |
|
rev |
line source |
132
|
1 /*******************************************************************************
|
|
2
|
|
3 Illustrates usage of cluster tasks
|
|
4
|
|
5 *******************************************************************************/
|
|
6
|
|
7 import Add, tango.io.Stdout, tango.net.cluster.tina.ClusterTask;
|
|
8
|
|
9 void main (char[][] args)
|
|
10 {
|
|
11 scope add = new NetCall!(add);
|
|
12
|
|
13 Stdout.formatln ("cluster expression of 3.0 + 4.0 = {}", add(3, 4));
|
|
14 }
|
|
15
|