RLS 1.0 FTF Avatar
  1. OMG Issue

RLS — (C++-PSM) Methods shall better send return codes as exceptions

  • Key: RLS-90
  • Legacy Issue Number: 14014
  • Status: closed  
  • Source: JARA ( Shuichi Nishio)
  • Summary:

    As in most C++ implementations, it is better if methods will return
    the return codes (Returncode_t) as exceptions.

  • Reported: RLS 1.0b1 — Fri, 19 Jun 2009 04:00 GMT
  • Disposition: Resolved — RLS 1.0
  • Disposition Summary:

    All the class methods (functions) in beta1 specification’s C++ PSM were
    returning Returncode_t value. Thus, the attributes marked as ‘out’ were handled
    as by-reference arguments that were normally implemented by pointer passing.
    Besides the C++ style pointed out in the summary, passing pointers are not a
    good manner for effective development. Thus, we will change C++ PSM
    definitions so that methods will use exceptions for passing return codes. The ‘out’
    attributes will be passed as return values whenever possible.

  • Updated: Fri, 6 Mar 2015 20:58 GMT