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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4702 - (download) (annotate)
Wed Oct 5 18:33:06 2016 UTC (2 years, 9 months ago) by glk
File size: 362 byte(s)
synching with diderot/branches/vis15/src/tests/vis15-bugs
function real foo(real x) {
   real ret = x*cos(0.0);
   print(x, " --> ", ret, "\n");
   return ret;
}

strand hello () {
   /* every Diderot program must have at least one output */
   output int out = 42;

   update {
      print("hello, world\n");
      real dummy = foo(out);
      stabilize;
   }
}
initially [ hello() | ii in 0..0 ];  // only one strand

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