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

SCM Repository

[diderot] View of /branches/vis15/src/tests/new-tests/coerce-test.diderot
ViewVC logotype

View of /branches/vis15/src/tests/new-tests/coerce-test.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4497 - (download) (annotate)
Sat Sep 3 14:12:36 2016 UTC (2 years, 8 months ago) by jhr
File size: 262 byte(s)
  working on merge: updating tests with new version 2 syntax
#version 2.0

// test various coercion situations
//

real[4] xs = {1, 1.5, 2, 2.4};
real[] ys = {1.2, 2, 4};

strand S (real x') {
  output real x = x';
  int i = 1;

  update {
    x = (x if true else i);
  }
}

create_collection { S(x+y) | x in xs, y in ys }

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