Re: Access to function returning class-wide type



"Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx> wrote in message
news:tslrrr8w3j63.zp28ykzgmr23.dlg@xxxxxxxxxxxxx
....
P.S. I don't know reasons why it was decided to use an access type in
Ada.Tags.Generic_Dispatching_Constructor profile. One could always pass a
pointer there if a side effect on the parameters were desired. But that is
another issue, and in any case Proc is thought as an implementation
detail,
so its exact profile should not really matter.

I originally came up with this proposal (based on random thoughts tossed out
by Steve Baird and Tucker Taft). We'd been trying to find solutions for
literally years; I was amazed that this one didn't fall into a heap of slag
as the others had.

Anyway, the access parameter exists so that an instance of this routine
matches the profile of S'Class'Input. After all, the purpose of this routine
is to eliminate the Ada 95 compiler magic involved with S'Class'Input and
make it user-programmable. The thought is that a user-defined version of
S'Class'Input would be directly specified as an instance of
Generic_Dispatching_Constructor.

In hindsight, I'm not certain that is a good idea, because it mucks up the
spec for no particularly good reason. But that's the way it is now.

Randy.



.



Relevant Pages

  • SBS2003-Messed up profile copy
    ... I was called in to help fix a blown SBS2003 Installation. ... I absolutely love the new profile copy routine! ... the profile copy routing "never ran" according to the user. ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: profiling C Callabe assembly function
    ... now i want to profile it. ... cycles but when check it in assembly, ... If so, and if interrupts are enabled during your routine, you may be ...
    (comp.dsp)
  • Re: profiling C Callabe assembly function
    ... now i want to profile it. ... cycles but when check it in assembly, ... If so, and if interrupts are enabled during your routine, you may be ...
    (comp.dsp)
  • Reducing data in a Worksheet
    ... or routine to create a new data set in this way? ... cspellman's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=37620 ...
    (microsoft.public.excel)
  • Re: BUC Registration OPEN!
    ... how long can routine be ... Solo or pairs OK? ... South West Unicycle Meet ... sarah.miller's Profile: http://www.unicyclist.com/profile/1694 ...
    (rec.sport.unicycling)