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

SCM Repository

[diderot] View of /branches/vis12/bugs/open/bug043.diderot
ViewVC logotype

View of /branches/vis12/bugs/open/bug043.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3343 - (download) (annotate)
Thu Oct 22 14:15:20 2015 UTC (4 years, 8 months ago) by jhr
File size: 957 byte(s)
  update bugs
/*
"output int" works.  The problem has to do with the use of the parameter in the update
method. [JHR]
*/
/*
can't seem to have "output int" ?

This bug doesn't have anything to do with integer outputs.
It has to do with the assignment "out = ii".  If you change
the strand definition to

	strand foo (int ii) {
	  output int out = ii;
	  update {
	    stabilize;
	  }
	}

then it compiles

compiling with: ../../bin/diderotc --exec bug043.diderot
produces:
bug043.c:76:20: error: use of undeclared identifier 'p_ii_0'
    self->sv_out = p_ii_0;
                   ^
1 error generated.
uncaught exception Fail [Fail: error compiling/linking]
  raised at common/phase-timer.sml:76.50-76.52
  raised at common/phase-timer.sml:76.50-76.52
  raised at common/phase-timer.sml:76.50-76.52
  raised at c-util/run-cc.sml:28.17-28.47
*/
strand foo (int ii) {
  output int out = 0;

  update {
    out = ii;
    stabilize;
  }
}

initially [ foo(ii) | ii in 0..3 ];

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