« Return to Thread: Is there a difference between these two function definitions?

Re: Is there a difference between these two function definitions?

by HamletDRC :: Rate this Message:

Reply to Author | View in Thread

Both create a method named myfunc with an Object parameter named param
on the Script class.

You can see this using the groovyConsole "Inspect Ast" feature in the
nightly build of 1.7.

--
Hamlet D'Arcy
hamletdrc@...



On Wed, Jul 1, 2009 at 1:28 PM, Lex Williams<lyon2003@...> wrote:

>
> Is there a difference between a function defined like this :
>
> def myfunc(def param) {
> // whatever
> }
>
> and
>
> def myfunc(param) {
> // whatever
> }
> ? --------------------------------------------------------------------- To
> unsubscribe from this list, please visit:
> http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


--
Hamlet D'Arcy

 « Return to Thread: Is there a difference between these two function definitions?