Unwanted conversion to float when passing a string to a proc [message #1804411] |
Mon, 25 March 2019 13:27  |
Eclipse User |
|
|
|
This snippet provokes an error:
proc "unwantedConversion" [ val myText ] {
concat "unwantedConversion: " $myText | log
$myText | matches "0.0010" | assert-true
concat "unwantedConversion: " $myText " success" | log
}
unwantedConversion "0.0010"
One find the following line in the log
[Worker-190: ECL session execute: log] INFO PLATFORM - [org.eclipse.core.runtime] unwantedConversion: 0.001
This behaviour creates problems for us as we have to handle keys liks '00.01.02.03'. And there is nothing in the doc (as far as I remember) that shows that a val parameter is by default converted into a float.
If you could add an optional option like '-string' to the val declaration we would be satisfied, as this would not break existing code.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03900 seconds