When you say "make [the serial block] lexically scoped", presumably you're talking about just what is directly within the serial block in the program text, and not any other Chapel code that might be bright in as a result of inlining? Given how many Chapel constructs are implemented in terms of arbitrary amounts of possibly inlined internal module code, I think this would have to be so. But I can also imagine programmers wanting, say, any of their own procs defined in a module and called from a serial block within it to be executed in serial mode as well. Of course they could inline such procs manually themselves, though that might conflict with how they wanted to functionally decompose their code. There's probably no way to make everyone happy here.
greg On 6/4/2015 10:16 AM, Brad Chamberlain wrote: > ... > > I don't have as many thoughts about the serial block, in part because I > don't feel like it sees much use in practice. It could, arguably, make > sense to make it completely local to a given parallel construct or to make > it lexically scoped. > > -Brad > > ... > ------------------------------------------------------------------------------ _______________________________________________ Chapel-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-developers
