flightaware / Pgtcl

Tcl client side interface to PostgreSQL (libpgtcl)
https://flightaware.github.io/Pgtcl/
BSD 3-Clause "New" or "Revised" License
31 stars 10 forks source link

::: is incorrectly recognized as a cast #19

Closed resuna closed 5 years ago

resuna commented 7 years ago

:::x should be a reference to $::x (global variable).

You can work around it using the cookie monster operator :{::x}

resuna commented 5 years ago

Possible fix

https://github.com/flightaware/Pgtcl/blob/master/generic/tokenize.c#L375

Add "&& z[2] != ':'"