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

SCM Repository

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

View of /tests/new-tests/coerce-test.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (download) (annotate)
Tue Sep 27 20:54:47 2016 UTC (2 years, 8 months ago) by glk
File size: 262 byte(s)
initial result of svn export --username anonsvn --password=anonsvn https://svn.smlnj-gforge.cs.uchicago.edu/svn/diderot/branches/vis15/src/tests/
#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