[X3D-Public] Mantis 525: Ecmascript method naming for inputOutput fields

Don Brutzman brutzman at nps.edu
Wed Jun 27 08:58:42 PDT 2012


On 6/27/2012 8:39 AM, Johannes Behr wrote:
> Hi,
> 
>>
>> Offending statement from 4.3.5.4:
>> If the function represents an inputOutput field, the name of the function shall be the same name as the field declaration, without the set_ or _changed modifiers.
>>
>> Proposed correction sentences:
>> If a function represents an inputOutput field, the name of the corresponding function shall be the same name as the field declaration with the set_ modifier
> 
> Agreed. makes sense. Can be implementation with some backwards compatible handling.

very good

>> prepended. To access the value of the inputOutput field, the name of the field itself shall be used without the _changed modifier.
> 
> Why? There is no conflict anymore with the set_ function prefix and the name of the variable could just stay. Otherwise is it very odd compared to initializeOnly data fields.

Sounds like we agree?  The two sentences seem the same:

- "the name of the field itself shall be used"
- "the name of the variable could just stay"

We are still on the teleconference with Herbert and working through final minutes.

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman





More information about the X3D-Public mailing list