Re: Date manipulation

From: Howard Brazee (howard_at_brazee.net)
Date: 12/30/03


Date: Tue, 30 Dec 2003 16:15:46 GMT


On 30-Dec-2003, Binyamin Dissen <postingid@dissensoftware.com> 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?

It assumes that a display statement is meant to act as though it was
instantaneous.

It's easy enough to do - the question is whether or not that is the way it's
supposed to work. I was under the impression that that IS the way it is
supposed to work, and that is the way it does work in my environment.



Relevant Pages

  • Re: What is Forth?
    ... the target, and then tell me why those aren't advantages for seaForth. ... But now there is Forth hardware, ... support both a Forth development environment and the target application. ... My only point was that he said he wanted to put Forth compiler into ...
    (comp.lang.forth)
  • Re: Project Idea.
    ... There is an Oberon compiler for the 68HC11 that took 4 months for a ... This language is more powerful and has fewer production in the EBNF ... is a nice development environment minus sources available there. ... A backup picture for the CPU board is available at ...
    (alt.lang.asm)
  • Re: Extent of definitions in environments (Was: First draft ...)
    ... written a macro that expands to an eval-when. ... The compiler creates an evaluation environment with FORM ... (cons 'progn (duplicate form))) ...
    (comp.lang.lisp)
  • Re: Question for Java Gurus
    ... its own compiler and doesn't use javac at all. ... the CLASSPATH environment variable from within Eclipse. ... classpath implementations of compilers as a fringe case. ...
    (comp.lang.java.programmer)
  • Re: Question for Java Gurus
    ... its own compiler and doesn't use javac at all. ... the CLASSPATH environment variable from within Eclipse. ... classpath implementations of compilers as a fringe case. ...
    (comp.lang.java.help)