imageworks/OpenShadingLanguage — pull request #159 by lgritz (2012-09-29 05:59:22+00:00)
Title: oslc better error checking for calling a variable as if it were a function

Haha, a construct like this:

float x = dPdu(u);

i.e., a function call that used the identifier of a variable (in this case the global variable dPdu) as if it were a function call, would lead to a comical series of errors.

Put in code to catch this right away and give a helpful error message.

Fixed an assertion that I was hitting to make it more modern and compact.