General (#1) - Is query overloading possible ? (#25) - Message List

Is query overloading possible ?
 unsolved

Hi,

In my transformation definition I have defined two queries with the same name, but different parameter-types. Should this be supported according to the QVT spec? OCL does support it, the ikv-QVT syntax parser gets confused...

This is my code:

query getProperty(entry : POI::Entry, id : String) : String {
	entry.row.table.section.document.sections->
		select(s|s.name = entry.value).last().getProperty(id)
}
query getProperty(sect : POI::Section, id : String) : String {
	sect.getProperty(id)
}

Thanx,

-- Carel

  • Message #63

    Since OCL supports it, we think this should also be supported in QVT and we have fixed this "bug" now. You can get an update by waiting on the next mediniQVT release or by building the engine yourself (see http://projects.ikv.de/qvt/wiki/Build )

    • Message #64

      Thank you very much for this very fast response!

Attachments

No attachments created.