Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /tests/vis15-bugs/phello.diderot
ViewVC logotype

Annotation of /tests/vis15-bugs/phello.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4702 - (view) (download)

1 : glk 4702
2 :     function real foo(real x) {
3 :     real ret = x*cos(0.0);
4 :     print(x, " --> ", ret, "\n");
5 :     return ret;
6 :     }
7 :    
8 :     strand hello () {
9 :     /* every Diderot program must have at least one output */
10 :     output int out = 42;
11 :    
12 :     update {
13 :     print("hello, world\n");
14 :     real dummy = foo(out);
15 :     stabilize;
16 :     }
17 :     }
18 :     initially [ hello() | ii in 0..0 ]; // only one strand

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0