use of libraries [message #930706] |
Tue, 02 October 2012 15:02 |
Cuauhtemoc Castellanos Messages: 9 Registered: September 2012 Location: paris |
Junior Member |
|
|
Hello,
I'm trying to modularize my transformation code into sorted libraries.
Separating helpers and queries works but i can't separate a call to a mapping and its definition. When i do it, it tells me that it cannot find operation.
Is there a way to tell to the interpretor that it has to look into the library?
thanks,
Cuauhtemoc.
|
|
|
|
|
|
|
|
|
|
Re: use of libraries [message #932912 is a reply to message #932780] |
Thu, 04 October 2012 15:06 |
Fabio L. S. Messages: 15 Registered: July 2010 Location: Brazil |
Junior Member |
|
|
Hi Cuauhtemoc;
Maybe I did not understand your question, but in the QVT specification a library and a transformation are modules (specializations of the "module" metaclass) (see page 78). I don't know why the "module" metaclass is not abstract, i.e., what is a module that is neither a library nor a transformation...
Regarding your problem, try to reorganize your libraries in order to avoid Library B calling Library A ("wrapped" calling the "wrapper"). As Ed commented, cyclic dependencies are often an indication of an inadequate organization (not cohesive enough). Ask yourself if it is really necessary. If it *really* is, a simple solution is to move the A's mappings & queries used by B to another Library (C, for example) and make A and B import it.
Regards;
Fabio Levy Siqueira
|
|
|
Powered by
FUDForum. Page generated in 0.03437 seconds