[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2t-dev] [MTL] Template.overrides
|
Yes, myOtherTemplate should be declared in the "extends" reference (as public).
The third option is the correct one:
-overrides myOtherTemplate
e.g. template public myTemplate(s: Schema) overrides myOtherTemplate
You have to indicate the template that is overridden.
Regards,
Arjan.
(Sorry for the late reaction)
On Fri, Jun 20, 2008 at 10:02 AM, Jonathan MUSSET <
jonathan.musset@xxxxxxx> wrote:
Arjan,
We want to implement the "overrides" clause for templates...
How does it work?
"overrides" myOtherTemplate
Do you mean that "myOtherTemplate" is declared in the "extends" reference of the current module?
If "myOtherTemplate" has some parameters,
Which syntax is the good one in the following examples?
-overrides myOtherTemplate(Object,Object)
-overrides myOtherTemplate(p1:Object,p2:Object)
-overrides myOtherTemplate
-overrides
My favorite is the fourth one. It is more simple!!!
Cheers,
Jonathan
_______________________________________________
m2t-dev mailing list
m2t-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2t-dev