eclipse-qvto / org.eclipse.qvto

Eclipse Public License 2.0
0 stars 1 forks source link

TCT27: IES Translation (org\eclipse\m2m\internal\qvt\oml\ast\parser) #456

Open eclipse-qvt-oml-bot opened 6 days ago

eclipse-qvt-oml-bot commented 6 days ago

| --- | --- | | Bugzilla Link | 277030 | | Status | NEW | | Importance | P3 normal | | Reported | May 19, 2009 19:00 EDT | | Modified | May 24, 2009 15:06 EDT | | Version | 2.0 | | Reporter | Tushara |

Description

Hi,

In the file eclipse\plugins\org.eclipse.m2m.qvt.oml\org\eclipse\m2m\internal\qvt\oml\ast\parser\ValidationMessages.properties, we came across the following sentence:

Name of the constructor is necessarily the name of the context type

This sentence is a little hard to understand.\ Could you pls reword it for a better understanding?

Thanks a lot in advance!

eclipse-qvt-oml-bot commented 6 days ago

By Sergey Boyko on May 24, 2009 15:06

In reply to comment #1

Sentence "Name of the constructor is necessarily the name of the context type" was copied from the QVT specification (section 8.2.1.13 "Constructor", Notation part).

It means that name of the constructor must coincide with name of context type. For example, for the context type named MyClass name of the constructor should also be MyClass. \ In QVT script that's notated like: MyClass::MyClass()