Thanks Nicolas.

This is a good comment.

Doru


On Tue, Sep 27, 2011 at 1:48 PM, Nicolas Anquetil <nicolas.anquetil@inria.fr> wrote:

You can specify only one SourceLanguage in a model and it becomes the language by default for all the entities in the model.

Then you can also have a specific SourceLanguage that is for some entities. They point to it and it points to them.

That allows to have entities from several langagues in the same model:

"I represent the programming language in which an entity is written.
I'm used for dispatching entity actions for specific languages. For example, formatting a source text will be performed according to the language.
Different entities in a model can point to their own SourceLanguage, or they can have none and in this case, they are assumed to belong to the default SourceLanguage in the model.
They should be at least one SourceLanguage instance in a model (the default language)"

nicolas

----- Mail original -----
> De: "Stéphane Ducasse" <stephane.ducasse@inria.fr>
> À: "Moose-related development" <moose-dev@iam.unibe.ch>
> Envoyé: Mardi 27 Septembre 2011 09:57:34
> Objet: [Moose-dev] [Better Comment Initiative]: FAMIXSourceLanguage
> We get
> ------
> FAMIXSourceLanguage
>
> This represents the programming language in which an entity is
> written. It is used for dispatching entity actions for specific
> languages. For example, formatting a source text will be performed
> according to the language.
>
> We can get
> ---------
>
> I represent the programming language in which an entity is written.
> I'm used for dispatching entity actions for specific languages. For
> example, formatting a source text will be performed according to the
> language.
>
> API:
> format: aSourceString from: anEntity
>
> isAttached
> @@no idea what it is.@@
>
> sourcedEntities
> References to the entities saying explicitly that are written in this
> language
>
> @@But it does not help me at all@@
>
>
> Now I do not get why we have sourceEntities added to the source
> language.
>
>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev@iam.unibe.ch
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
--
www.tudorgirba.com

"Every thing has its own flow"