| Summary: | User-declared namespace prefix (needs syntax change) | ||
|---|---|---|---|
| Product: | [Modeling] Acceleo | Reporter: | Vlad Gheorghe <vlad.gheorghe> |
| Component: | Core | Assignee: | Project Inbox <acceleo-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | ed, laurent.goubet |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Vlad Gheorghe
(In reply to comment #0) > The enhanced syntax would be like: > <mtl> > module Mod1(mymm1='http://example.org/mm1/1') > </mtl> I think module Mod1(mymm1:'http://example.org/mm1/1') would be more consistent with other name:type declarations. (In reply to comment #1) > (In reply to comment #0) > > The enhanced syntax would be like: > > <mtl> > > module Mod1(mymm1='http://example.org/mm1/1') > > </mtl> > > I think > > module Mod1(mymm1:'http://example.org/mm1/1') > > would be more consistent with other name:type declarations. The syntax name:Type is used to declare new local variables and parameters, with the given name. ( <variable> ':' <type> ) In the case at hand the name is just an alias for an *existing* package (hence the equivalence '=' sign ). IMHO, using the same syntax would be confusing. Could be interesting for disambiguation of types sharing the same namespace as well. |