qdtk / openshadinglanguage

Automatically exported from code.google.com/p/openshadinglanguage
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

component access of computed result #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The grammar currently rejects

   color foo () { return ... }

   float a = foo()[0];

I believe this is allowed in C, so it should work in OSL. But it currently 
gives a syntax error, I think 
because it rejects [] for non-lvalues.

Original issue reported on code.google.com by rene.lim...@gmail.com on 11 Jan 2010 at 7:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by rene.lim...@gmail.com on 13 Jan 2010 at 1:00