@Peter: Thank you for creating and fixing UIMA-5423.
If we switch to null as default value: what happens if we use the variable
without explicit initialization?
Example:
STRING name, fullname;
Name {-> MATCHEDTEXT(name, 1),
ASSIGN(fullname, fullname + " " + name), // append string and space to
"fullname" without initialization.
...}
In general using fullname without initialization can be considered as bad
style. But I'm afraid, that many users writes similar code.
Wolf
-----Ursprüngliche Nachricht-----
Von: Peter Klügl [mailto:[email protected]]
Gesendet: Mittwoch, 10. Mai 2017 11:10
An: [email protected]
Betreff: Re: Variables in Ruta scripts are not initialized properly by
RutaEngine if their script is called by others
btw, the intial value "" (empty string) of string variables has historical
reasons. Maybe we should switch it to null?
Peter
Am 09.05.2017 um 09:03 schrieb Peter Klügl:
> Hi,
>
>
> thanks. I've taken the liberty of creating a jira issue for this. I
> will fix it soon.
>
>
> Best,
>
>
> Peter
>