Re: Date manipulation

From: Binyamin Dissen (postingid_at_dissensoftware.com)
Date: 12/30/03


Date: Tue, 30 Dec 2003 17:56:35 +0200

On Tue, 30 Dec 2003 14:18:25 GMT "Howard Brazee" <howard@brazee.net> wrote:

:>On 29-Dec-2003, riplin@Azonic.co.nz (Richard) wrote:

:>> > I was under the impression that this gets converted into one call though.

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

How does the compiler know that each time the same result will be returned?

Perhaps a static variable or random number affects the result?

--
Binyamin Dissen <bdissen@dissensoftware.com>
http://www.dissensoftware.com
Director, Dissen Software, Bar & Grill - Israel


Relevant Pages

  • 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)
  • Re: Date manipulation
    ... >> By having a little bit of smarts. ... Richard, that brings up a thought, relative to the OO threads now ongoing. ... In one case the compiler ... it is the ramifications of the concept that I'm ...
    (comp.lang.cobol)
  • Re: Date manipulation
    ... "Howard Brazee" wrote ... > By having a little bit of smarts. ... 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 ...
    (comp.lang.cobol)
  • Re: Date manipulation
    ... >> By having a little bit of smarts. ... It depends on how the compiler was written and what the standards were. ... I wrote it to be enough waffling. ...
    (comp.lang.cobol)
  • Re: Reducing *.o files size in cc compiler
    ... > It's about c source files which are compiled into *.o files. ... > for the reduction is just to save disc space. ... compiler. ...
    (comp.unix.aix)