Re: CREATEPROCESS Question

From: Richard Maine (nospam_at_see.signature)
Date: 12/29/03


Date: Mon, 29 Dec 2003 08:05:03 -0800


"Gary L. Scott" <garyscottNOSPAM@ev1.net> writes:
> Jugoslav Dujic wrote:

>> Well, it is a little redundant, but that's the case with many apis --
>> once they decide to enhance capabilities, they usually have to add a
>> new function in order to maintain backward capability -- adding new
>> arguments is not an option....
>
> Maybe they should have used Fortran 90's optional keywords...that's the
> way GINO tends to add functionality to existing APIs.

Though this does help, note that it doesn't solve all of the world's
problems. If a new optional argument is added, the calling code tends
to need recompilation...and it likely really does need recompilation
or it won't work correctly, this isn't just a spurious recompile. No
source code changes should normally be needed except in rare special
cases (assuming it is a module procedure - but I recommend that anyway),
but you will need to recompile.

This means you need the source code...a bit of a problem with many
commercial applications.

It also means that you have to have sufficiently good configuration
control that you know what the current version of teh source code is
and you know how to sucessfully build the application from it. Of
course, this "should" be the case, but telling users that the
difficulty is their fault doesn't go over very well, even if it is
(perhaps partly) true. Thus when doing something like this, you
need to consider the user base and how much difficulty they are
likely to have. The more users you have, the bigger an issue it
will be. For an operating system API, it can be a pretty big one.

Though getting a bit off the original topic, I think this a
relevant issue for comp.lang.fortran - how adding optional
arguments to an API can impact applications.

-- 
Richard Maine                       |  Good judgment comes from experience;
email: my first.last at org.domain  |  experience comes from bad judgment.
org: nasa, domain: gov              |        -- Mark Twain


Relevant Pages

  • Re: Identifying call of copy of ((){ })();
    ... The code is effectively identical for both but API has a few subtle differences that I need to take into account. ... Is there a someway to tell if the public methods are called ... might expose that source code the work needed to extract the information would be a huge overhead. ... It would probably be simpler to wrap the fist object in a second that implemented an identical public interface and then you could know which was called based on the identity of the functions that made up the two interfaces. ...
    (comp.lang.javascript)
  • Re: pgm object/source comparison
    ... match date/time for each module. ... >> I have developed a concern recently that the source code may not match ... I recently had to recompile about 50 programs; ... >> George Applegate ...
    (comp.sys.ibm.as400.misc)
  • Re: Windows API + Hotkey
    ... calls to the Windows API's. ... here's some websites that will help you figure out what the API ... Rob wrote: ... have to print off the source code when I go back to work Monday. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: MS Word - what a mickey mouse pile of sh!t.
    ... I like the fact that you can modify the source code, ... can recompile it with optimization flags specific to your processor. ... There are some features of Word that I may ...
    (microsoft.public.word.newusers)
  • importing embedded dynamic lib
    ... 2- import by embedded python interpreter using an API call. ... 1- what would be the recommended technique to embed a binary file inside ... 2- Let's imagine that I managed to load "noddy.so" into my source code ... Any hints as to the correct python API call to import a dynamic lib ...
    (comp.lang.python)