× 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: is nmi translator off limits?
  • From: "Steve Richter" <srichter@xxxxxxxxxxxxx>
  • Date: Fri, 11 May 2001 15:40:59 -0400

With a service program I can change the parameter list to an existing function, or let a completely different
function (with a changed parameter list) take over the name of an old function; and still let old programs
using the old function work without modification or recompilation. How would you accomplish this with your
CallM opcode?
 
What you are describing is similar to function overloading. same function name, different argument types or number of arguments. Two completely separate modules. One of the great contributions of c++ and bjarne stroustrup. ( if he did not invent it, he sure showed how well it could work, esp when combined with templates. ).  
 
In my opinion, what you are describing is a bad programming method. Adds more complexity to the system. If the new module does something different that the old module, give it a new name or use a typed language that supports overloading.
 
Or if you can justify this practice and agree that cpu is virtually free, introduce an OvrPgm or OvrMod command.  When the module is called from the old pgms, override the call to the old module.
 
regards,
steve
 

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.