× 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.


  • Subject: Re: mi access to a dtaara
  • From: "Larry Loen" <lwloen@xxxxxxxxxx>
  • Date: Fri, 1 Jun 2001 19:03:30 -0500
  • Importance: Normal


>2nd example. Chgs and additions to the api.  As400 adds addn parms to its
>api, adds another rtn fmt name ( objd0100, objd0200, ... ) when it adds a
>new feature to its api.  This makes the api increasing more complex to
use.
>Some parms are ignored, others must be set to a specific value, ...   In
the
>class/mbr paradigm, when an api gets a new feature, a new mbr function is
>added to the class. No chg to the original mbr function. The os knows
which
>one is being called based on the nbr of arguments passed, the types of
these
>arguments.

Both your examples (especially this one) relies on having a language where
the arguments form part of the "signature" that is supported by the linkage
process explicitly.  This is one of the great features of C++.  It is,
however, not an enforcable feature of at least C and probably not a great
many other languages even in the Microsoft world.  Most historical
languages link only to the "method" name (function name in historical
terms).

Maybe in 2001 this is a great idea, but part of the reason OS/400 APIs are
as they are is that they work will languages old and new.  It certainly
creates the problem you cite, but it also allows people to code in their
own familiar language (say, RPG) and not have to buy a compiler they
otherwise would not need (say, in some shops, C++).


Larry W. Loen  -   Senior Java and iSeries Performance Analyst
                          Dept HP4, Rochester MN


+---
| This is the MI Programmers Mailing List!
| To submit a new message, send your mail to MI400@midrange.com.
| To subscribe to this list send email to MI400-SUB@midrange.com.
| To unsubscribe from this list send email to MI400-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: dr2@cssas400.com
+---

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.