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: Maxim Demenko <mdemenko_at_gmail.com>
Date: Thu, 14 Dec 2006 21:59:50 +0100
Message-ID: <4581BB46.4020805@gmail.com>


klabu schrieb:
> <fitzjarrell_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.
>
>

You make arbitrary presumption, whereas David's answer is fully correct, your question is more rhetorical - indeed, if you don't put the modules declaration into the specs, you *have* to worry about their sequence in the body if you don't use forward declaration. Regarding to put all declarations in the specs or not - i don't agree with you - it depends (imo). There may well be reasons to do it and not to do it.

Best regards

Maxim Received on Thu Dec 14 2006 - 14:59:50 CST

Original text of this message

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