Re: ver4 keyword Conflict
- Posted by mattlewis (admin) Oct 03, 2011
- 1638 views
BRyan said...
mattlewis said...
tan has always been built in.
Matt
Putting it another way
The 4.0 scanner is looking for a '( ' after ' tan ' and can not
tell the difference of the constant ' tan ' from the function ' tan '
This works for me:
? tan( 0.5 ) constant tan = "some color?" ? tan
If you're accessing the constant from another file, you'd need to use a namespace, otherwise it would resolve to the built-in. Overriding built-ins has changed a little for 4.0. In previous versions, user-defined symbols would override built-ins with no way to get at the built-in wherever the overriding symbol is in scope.
We added the override scope to operate in a similar way. Also, built-in symbols can be accessed using the eu namespace.
Matt