× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello,

many thanks to all who contributed to the discussion on my issue; I learn a lot 
at this forum.
My conclusion is that:
D String...                                                      
d                 PR              O   extproc( *JAVA             
d                                            : 'java.lang.String'
d                                            : *CONSTRUCTOR)     
d  chars                     65535A   varying                    
d                                     const                      
d                                     options(*VARSIZE)          

can be applied without concerns.

Regards
Otto Steffan

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On 
Behalf Of Barbara Morris
Sent: Monday, June 07, 2004 8:08 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Prototyping a constructor of java String class


"Steffan, Otto (GE Consumer Finance)" wrote:
> ...
> I undestand that if I MORE often pass fixed-length field, VARYING is still 
> possible but not very good because parameters do not match(?) and RPG must 
> handle it.
> Does it mean that my idea of having a single prototype for String constructor 
> is basically wrong ? I have intended the prototype available to the RPG 
> programmers here (knowledge of Java support in RPG has not spread here yet) 
> and I do not know which parameter passing method will prevail.
> 

Otto, in general, the impact of copying the passed parameter to a
temporary will not make much difference in the time taken to create the
new string (or whatever Java method is being called with the byte array
parameter).  Whatever small time is taken to copy to a temporary will be
swamped by the time taken to 
 - translate the string to ASCII
 - create the new Java array object
 - call the String constructor

I wouldn't worry about it.

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.