Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Forward Declaration in Pkg Body

Re: Forward Declaration in Pkg Body

From: <ThomasO_at_cpas.com>
Date: 15 Dec 2006 10:00:26 -0800
Message-ID: <1166205626.772279.297130@t46g2000cwa.googlegroups.com>

On Dec 15, 12:39 pm, "klabu" <klab..._at_gmail.com> wrote:
> <fitzjarr..._at_cox.net>
>
>
>
>
>
> > klabu wrote:
> >> <fitzjarr..._at_cox.net>
> >> > Normally that would be done in the package specification, not the
> >> > package body.
>
> >> > And, no, there isn't anything 'wrong' with that practice.
>
> >> I said ---- "local modules" --- i.e. the ones you do NOT want to expose
> >> externally.
> >> If your statement is still the same regardless,
> >> then I do not agree, you don't just put every bit of code in the spec.
> >> That is why "Forward Declaration" is there IMO.
>
> > Where did I say in my response it was an *absolute* to put them ONLY in
> > the package specification? You assume too much from what is written.
> > "Normally" means, to my mind, the *usual* course of action in declaring
> > such modules. Certainly there will be exceptions, and I made *no*
> > statement to indicate otherwise.
>
> > David Fitzjarrellwhere did I say you said "it was an *absolute* to put them ONLY...." ? ;)
>
> alright, let me re-state the original q:
>
> *****************************************************************
>
> Is there anything wrong with FORWARD-DECALRING ALL LOCAL modules in package
> body --- the ones I do NOT and (logically should NOT) want to expose in spec
> --- whether I really "need" to or not
> so that I don't have to worry about their sequence in the package body ?
>
> 10gR2- Hide quoted text -- Show quoted text -

Klabu,
We do it only if it is absolutely necessary: "Local procedure A calls local procedure B, which calls local procedure A..."
In this case you must forward declare procedure A or B. So far no observer impact.
Thomas Received on Fri Dec 15 2006 - 12:00:26 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US