[Grace-core] No-shadowing rule
Andrew P Black
black at cs.pdx.edu
Thu Dec 4 14:35:54 PST 2014
Should the following should be allowed, and which disallowed, under the no-shaddwoing rule?
At the top-level of xmodules.grace:
method generateGCT(path)fromValues(values)modules(modules) {
def methods = collections.list.new
def confidentials = collections.list.new
....
The dialect (StandardPrelude) defines a method called methods, and the above def shadows it. There is another example in parser.grace
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailhost.cecs.pdx.edu/pipermail/grace-core/attachments/20141204/b44577ea/attachment.html>
More information about the Grace-core
mailing list