openexr-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-user] CTL bug/implementation issue


From: Florian Kainz
Subject: Re: [Openexr-user] CTL bug/implementation issue
Date: Tue, 03 Jul 2007 15:43:24 -0700
User-agent: Mozilla Thunderbird 1.0 (X11/20041207)

Hi Gonzalo,

in CTL you fix duplicate names the same way as in C:
either make the variable names unique, for example, by
using a prefix, or, if you want a variable that is shared
by two transforms, move the variable into a separate CTL
module that is then imported by both transforms.

We may at some point add support for unnamed namespaces.

The duplicate variable in transform_DPX_EXR.ctl and
transform_RRT.ctl is an oversight and should be fixed.

Florian



gga wrote:
CTL constant variables seem to not be namespace/context/file safe.
Attempting to load two files with similarly named static const variables
will result in an exception, like:

Name rec709 has already been defined in current scope. (@error28)
terminate called after throwing an instance of 'Ctl::LoadModuleExc'

This problem can be reproduced easily by trying to load, for example,
both the sample transform_DPX_EXR.ctl and the transform_RRT.ctl files.
Both contain their own (identical) rec709 static variable implementation.

It is unclear from the ctl docs how this is to be worked around.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]