Re: Date manipulation

From: Judson McClendon (judmc_at_sunvaley0.com)
Date: 01/01/04


Date: Wed, 31 Dec 2003 23:23:14 GMT


"Richard" <riplin@Azonic.co.nz> wrote:
> "Howard Brazee" <howard@brazee.net> wrote
> > >
> > > How would the compiler do that ?
> >
> > By having a little bit of smarts. It isn't difficult to see that the same
> > function was called 6 times in one display statement.
>
> And what if it was FUNCTION RANDOM that was being called 6 times ?
> Would the compiler think that it is a good idea to make that just one
> call ?
>
> How about FUNCTION READ_NEXT_RECORD?

Richard, that brings up a thought, relative to the OO threads now ongoing.
What about those Universal Object References Thane was mentioning, in
this context? I can see where you could potentially get a very different
result from early and late binding in this case. In one case the compiler
knows, in the other it doesn't. Implementation might be a bit tricky.

No criticism of OO here, it is the ramifications of the concept that I'm
curious about. :-)

-- 
Judson McClendon      judmc@sunvaley0.com (remove zero)
Sun Valley Systems     http://sunvaley.com
"For God so loved the world that He gave His only begotten Son, that
whoever believes in Him should not perish but have everlasting life."


Relevant Pages

  • Re: gfortran and "Type/rank mismatch"
    ... compiled on some compiler that didn't catch the error. ... I only use this subroutine to call a C function ... What Richard and Craig have told you is that two declarations ... "Declaration #2" below look the same a compiler is free ...
    (comp.lang.fortran)
  • Re: grown defect list?
    ... >Richard W. Könning schrieb: ... Stimmt, u.a. in der Readme.txt stand noch was von 5.0, der Compiler ... Prev by Date: ... Next by Date: ...
    (de.comp.hardware.laufwerke.festplatten)
  • Re: Pointers to char pointers in functions
    ... Many thanks for the response Richard. ... cast's for malloc unless the compiler complains (I generally use MS's ... Now the memory I allocate in fmust be assigned to a char* ...
    (comp.lang.c)
  • Re: Opinions on PGI vs. Lahey Fortran
    ... Richard E Maine wrote: ... > I have no experience with parallelization with either compiler, ... PGI just for the heck of it to see what I may be missing. ...
    (comp.lang.fortran)
  • Re: Installing HLA
    ... Another option is to code the compiler with some 'smarts' so that it ... will detect a "hw.hla.txt" case and rename (after consulting the user) ...
    (alt.lang.asm)