Bug 50

Summary: ORB_init() reorders its arguments
Product: TAO Reporter: Carlos O'Ryan <coryan>
Component: ORBAssignee: DOC Center Support List (internal) <tao-support>
Status: CLOSED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 0.4   
Hardware: All   
OS: All   

Description Carlos O'Ryan 1999-07-09 19:48:35 CDT
Calling ORB_init() is supposed to eat its arguments, but it re-orders the
arguments it does not consume, more precisely:

args:
  -Files file1 file2 file3 -SomethingOther huhu -SomethingOther2 hihi

args stack now:
- -Files
file1
file2
file3
- -SomethingOther
huhu
- -SomethingOther2
hihi

assume the -SomethingOther options gets parsed first:
args stack now:
- -Files
file1
file2
file3
hihi                         <--- rearranged by consume_arg
- -SomethingOther2             <--- rearranged by consume_arg
huhu                         <--- rearranged by consume_arg
- -SomethingOther              <--- rearranged by consume_arg

		Thanks to  Lothar Werzinger <lwerzinger@krones.de> for reporting this problem.
Comment 1 Carlos O'Ryan 1999-07-09 19:49:59 CDT
My mistake


*** This bug has been marked as a duplicate of 49 ***
Comment 2 Carlos O'Ryan 1999-07-09 19:51:59 CDT
It is really a verbatim copy, closing it.