Re: Date manipulation
From: Howard Brazee (howard_at_brazee.net)
Date: 12/30/03
- Next message: Howard Brazee: "Re: CoBOL moved to OO"
- Previous message: Robert Jones: "Re: [OT] JCL DD name for CEE msgs?"
- In reply to: Richard: "Re: Date manipulation"
- Next in thread: JerryMouse: "Re: Date manipulation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Dec 2003 20:36:37 GMT
On 30-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.
>
> 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 ?
It depends on how the compiler was written and what the standards were.
You're gradually changing the questions from how a compiler could do something
to whether it is a good idea for it to do something similar. The compiler can
be written however the standards say it should be written. I didn't make the
decisions, but I thought I read that this particular function was only called
once per statement. I did say "I was under the impression", which seemed when
I wrote it to be enough waffling.
- Next message: Howard Brazee: "Re: CoBOL moved to OO"
- Previous message: Robert Jones: "Re: [OT] JCL DD name for CEE msgs?"
- In reply to: Richard: "Re: Date manipulation"
- Next in thread: JerryMouse: "Re: Date manipulation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|