brentb
unread,Jul 18, 2011, 11:00:12 AM7/18/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to seexpr-...@googlegroups.com
Hi Colin,
You're right that in the PRMan shadeop example the varrefs (and the exprs themselves for that matter) are allocated but never deleted. We can get away with this in this case because the parsed expressions are cached for the life of the process in the expectation that they will be used over and over. However,given that it's meant to be an instructive example, we should probably be doing proper cleanup. Thanks for pointing it out.
Brent