|
Re: [QVTo] Dictionary Configuration Properties [message #555637 is a reply to message #555632] |
Fri, 27 August 2010 13:13 |
Eclipse User |
|
|
|
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl
Hello Al,
> read that I have to use config
> properties as global variables
Configuration properties are for transformation options, that are
configurable by the user of the transformation. I would not use them for
internal, global variables.
> they don't seem to accept Dict as
> their type. What should I do instead?
there are some bugs in the Helios release of Eclipse related to
dictionaries (also in combination with properties). I reported them and
they were recently fixed. See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=322756
and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=322758
Maybe these fixes also solve your problems?
Best regards,
Dennis
Al wrote:
> I need a Dict as a global variable. I read that I have to use config
> properties as global variables, but they don't seem to accept Dict as
> their type. What should I do instead?
>
>
|
|
|
|
|
Re: [QVTo] Dictionary Configuration Properties [message #555893 is a reply to message #555698] |
Mon, 30 August 2010 06:16 |
Eclipse User |
|
|
|
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl
Hello Al,
> I agree that configuration properties are not meant to be used as
> global
> vars, however I am not aware if any other Qvto feature that is.
QVTo has both configuration and non-configuration properties. Instead of
"configuration property <name> : <type> = <value>" just use "property
<name> : <type> = <value>"...
Best regards,
Dennis
Al wrote:
> Thanks Dennis,
>
> I agree that configuration properties are not meant to be used as global
> vars, however I am not aware if any other Qvto feature that is.
> On a related note, is the call semantics of Qvt call-by-value? Is it
> possible to have call by reference instead?
>
>
> Thanks
> Al
|
|
|
Re: [QVTo] Dictionary Configuration Properties [message #555894 is a reply to message #555698] |
Mon, 30 August 2010 06:18 |
Eclipse User |
|
|
|
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl
Hello Al,
> On a related note, is the call semantics of Qvt call-by-value? Is it
> possible to have call by reference instead?
Are you asking about mappings, or helpers, or both? For mappings, you
can control this by using in/out/inout, I think.
Best regards,
Dennis
Al wrote:
> Thanks Dennis,
>
> I agree that configuration properties are not meant to be used as global
> vars, however I am not aware if any other Qvto feature that is.
> On a related note, is the call semantics of Qvt call-by-value? Is it
> possible to have call by reference instead?
>
>
> Thanks
> Al
|
|
|
Re: [QVTo] Dictionary Configuration Properties [message #555900 is a reply to message #555893] |
Mon, 30 August 2010 07:05 |
Eclipse User |
|
|
|
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl
Hello Al,
oh wait, configuration properties don't have values... But
non-configuration ones do! Anyway, just omit the "configuration" keyword
and you have 'normal' properties.
Best regards,
Dennis
Dennis Hendriks wrote:
> Hello Al,
>
> > I agree that configuration properties are not meant to be used as
> > global
> > vars, however I am not aware if any other Qvto feature that is.
>
> QVTo has both configuration and non-configuration properties. Instead of
> "configuration property <name> : <type> = <value>" just use "property
> <name> : <type> = <value>"...
>
> Best regards,
> Dennis
>
>
> Al wrote:
>> Thanks Dennis,
>>
>> I agree that configuration properties are not meant to be used as
>> global vars, however I am not aware if any other Qvto feature that is.
>> On a related note, is the call semantics of Qvt call-by-value? Is it
>> possible to have call by reference instead?
>>
>>
>> Thanks
>> Al
|
|
|
Powered by
FUDForum. Page generated in 2.46096 seconds