/*! \file bug005.diderot * * \author John Reppy */ /* * COPYRIGHT (c) 2013 The Diderot Project (http://diderot-language.cs.uchicago.edu) * All rights reserved. */ /* this fails to compile because the parameter name for id is the same as an already declared * global. * * % ../../bin/diderotc --exec bug005.diderot * [bug005.diderot:3.19-25] Error: redefinition of 'x', previous definition at [bug005.diderot:1.1-2.0] * * we should allow this redefinition, since the parameter list is a new scope (do we want a warning?) */ real x = 1.0; function real id (real x) = x; strand Dummy () { output int out = 1; update { stabilize; } } initially { Dummy() | i in 1..2 };
Click to toggle
does not end with </html> tag
does not end with </body> tag
The output has ended thus: d Dummy () { output int out = 1; update { stabilize; } } initially { Dummy() | i in 1..2 };