On Fri, 5 Dec 2014, Sven Schreiber wrote:
I stumbled again over something for which my own mistake was the
ultimate cause, but still I think gretl should have complained:
<hansl>
scalar r = 5
sprintf r "%d", 10
print r # prints number 5
print "@r" prints literal @r
</hansl>
So I guess it's expected that gretl doesn't want to change the type of r
from scalar to string -- BTW, I don't mind this, but is this static
typing actually an intended property of hansl? --, but then this should
produce an error or a warning at least, no?
Yes, static typing is an intended property of hansl.
You're right, the second line above should generate an error. An error
was being registered internally but it wasn't propagating correctly.
That's now fixed in CVS.
Allin