Issue 1421: Can "public" mofifier be applied to value operations? (obv-rtf) Source: (, ) Nature: Uncategorized Issue Severity: Summary: Summary: Can the "public" modifier be applied to value operations? What is the default? In the Java mapping example on page 6-64 the operations are mapped to public operations of the Java class. However in the C++ mapping example on page 7-95, the operations are mapped to protected pure virtual functions of the generated C++ class. Resolution: Revised Text: Actions taken: June 2, 1998: received issue July 30, 1998: closed issue Discussion: No. public/private does not apply to operations. See revised language mapping chapters for correct End of Annotations:===== Return-Path: X-Sender: thompson@mail.roguewave.com Date: Mon, 01 Jun 1998 15:26:28 -0700 To: issues@omg.org From: Patrick Thompson Subject: OBV issue Can the "public" modifier be applied to value operations? What is the default? In the Java mapping example on page 6-64 the operations are mapped to public operations of the Java class. However in the C++ mapping example on page 7-95, the operations are mapped to protected pure virtual functions of the generated C++ class. --- Patrick Thompson Rogue Wave Software, Inc. ph. 541 754 3189 patrick@roguewave.com Return-Path: Sender: jon@floorboard.com Date: Mon, 01 Jun 1998 16:16:52 -0700 From: Jonathan Biggar To: Patrick Thompson CC: issues@omg.org, obval@omg.org Subject: Re: OBV issue References: <199806012226.PAA19055@cvo.roguewave.com> Patrick Thompson wrote: > > Can the "public" modifier be applied to value operations? What is > the default? > In the Java mapping example on page 6-64 the operations are mapped > to > public operations of the Java class. However in the C++ mapping > example on page > 7-95, the operations are mapped to protected pure virtual functions > of the generated > C++ class. Surely this must just be a typo in the C++ example, and the operations should be public. My reading of the OBV spec leads to the conclusion that all operations are "public". -- Jon Biggar Floorboard Software jon@floorboard.com jon@biggar.org Return-Path: From: Jeffrey Mischkinsky Subject: Re: OBV issue To: jon@floorboard.com (Jonathan Biggar) Date: Mon, 1 Jun 1998 17:43:23 -0700 (PDT) Cc: thompson@roguewave.com, issues@omg.org, obval@omg.org 'Jonathan Biggar' writes: > > Patrick Thompson wrote: > > > > Can the "public" modifier be applied to value operations? What is > the default? > > In the Java mapping example on page 6-64 the operations are mapped > to > > public operations of the Java class. However in the C++ mapping > example on page > > 7-95, the operations are mapped to protected pure virtual > functions of the generated > > C++ class. > > Surely this must just be a typo in the C++ example, and the > operations > should be public. My reading of the OBV spec leads to the > conclusion > that all operations are "public". that's my understanding also. it's only the state members which may be > private or public. jeff > > -- > Jon Biggar > Floorboard Software > jon@floorboard.com > jon@biggar.org > -- Jeff Mischkinsky jmischki@dcn.davis.ca.us +1 530-758-9850 jeffm@inprise.com +1 650-312-5158 jeffm@visigenic.com +1 650-312-5158 Return-Path: X-Sender: thompson@mail.roguewave.com Date: Mon, 01 Jun 1998 17:49:51 -0700 To: Jonathan Biggar From: Patrick Thompson Subject: Re: OBV issue Cc: issues@omg.org, obval@omg.org References: <199806012226.PAA19055@cvo.roguewave.com> At 04:16 PM 6/1/98 , Jonathan Biggar wrote: >Patrick Thompson wrote: >> >> Can the "public" modifier be applied to value operations? What is the default? >> In the Java mapping example on page 6-64 the operations are mapped to >> public operations of the Java class. However in the C++ mapping example on page >> 7-95, the operations are mapped to protected pure virtual functions of the generated >> C++ class. > >Surely this must just be a typo in the C++ example, and the operations >should be public. My reading of the OBV spec leads to the conclusion >that all operations are "public". Then it just a matter of fixing the example in 7.3.14. -Patrick --- Patrick Thompson Rogue Wave Software, Inc. ph. 541 754 3189 patrick@roguewave.com Return-Path: X-Sender: vinoski@mail.boston.iona.ie Date: Mon, 01 Jun 1998 21:32:21 -0400 To: Jonathan Biggar From: Steve Vinoski Subject: Re: OBV issue Cc: Patrick Thompson , issues@omg.org, obval@omg.org References: <199806012226.PAA19055@cvo.roguewave.com> At 04:16 PM 6/1/98 -0700, Jonathan Biggar wrote: >Patrick Thompson wrote: >> >> Can the "public" modifier be applied to value operations? What is the default? >> In the Java mapping example on page 6-64 the operations are mapped to >> public operations of the Java class. However in the C++ mapping example on page >> 7-95, the operations are mapped to protected pure virtual functions of the generated >> C++ class. > >Surely this must just be a typo in the C++ example, and the operations >should be public. My reading of the OBV spec leads to the conclusion >that all operations are "public". You're both right, that is an error in the C++ mapping. It would probably be worthwhile to check the text and the other examples to make sure nothing else is wrong in this space. --steve