Wildcard import behavior in Stratego editor is unexpected
I was working on WebDSL editor and there the wildcard import lib/- was replaced by the actual str files in the folder. However there are errors of undefined constructors. The case is that they are in libwebdsl-front which is an rtree file in the lib folder.
Is is that the editor includes also rtree files? It is understandable if it would be the case, but it is not clear what behavior is of importing rtree files
Submitted by chris melman on 15 March 2013 at 11:30
or is it that the wildcard import is a bit strange?
Issue Log
Do the declarations from the rtree file show up if you import the rtree itself? If so, the wildcard import may not take into account .rtree files.
lib/libwebdsl-front is doing the same as just libwebdsl-front import.
so we can import rtree files not sure if this is wanted behavior/syntax
Ok, I think there are several questions/issues here.
- It does not matter if you import
lib/foo
or justfoo
. I think that is fine.- An explicit import can import
rtree
files, which I think is intended and completely fine.- Wildcard imports do not include
rtree
files. Here, it is not clear if it is a bug (someone forgot them), or a feature (situations where including allrtree
files might be undesired).
Log in to post comments