just to add to your knowledge folks,

this is called the signature of a function..
As long as the signature is different the language knows which to call 

and just to show a usage of this concept 

function create()
{

name = "default"
        create(default)
}

function create(string name )
{
        new thing called name 
}




Justin  

> -----Original Message-----
> From: Paul Johnston [mailto:[EMAIL PROTECTED]]
> Sent: 29 November 2002 14:24
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] for loops...
> 
> 
> If you really want to get technical (ie a proper OO language) then it's
> not necessarily if the function has a different number of arguments.
> 
> Ie in Java you can say
> 
> public void myFunction(String s) {
>  // do something
> }
> 
> public void myFunction(Object o) {
>  // do something else
> }
> 
> public void myFunction() {
>  // do something else again
> }
> 
> public void myFunction(String s, Object o) {
>  // do something else again
> }
> 
> Basically the function is different because of the arguments, not the
> amount, but the type.
> 
> HTH (although probably more than you needed!)
> 
> Paul
> 
> Paul Johnston
> Technical Architect
> PJ Net Solutions Ltd
> http://www.pjnetsolutions.com
> +44 (0)7866 573013
> 
> 
> > -----Original Message-----
> > From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, November 29, 2002 2:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [ cf-dev ] for loops...
> >
> >
> > > you've got two functions with the same name, but different
> > amount of
> > > arguments.  so if you call function(arg1), it'll do the
> > function that
> > > accepts 1 argument.  if you call function(arg1, arg2), it'll do the
> > > function that takes 2 arguments.  very useful.
> >
> > Ahh... I see. Thanks.
> >
> >
> > --
> > Aidan Whitehall <[EMAIL PROTECTED]>
> > Macromedia ColdFusion Developer
> > Fairbanks Environmental +44 (0)1695 51775
> >
> > ______________________________________________________________
> > __________
> > This e-mail has been scanned for all viruses by Star
> > Internet. The service is powered by MessageLabs. For more
> > information on a proactive anti-virus service working around
> > the clock, around the globe, visit: http://www.star.net.uk
> > ______________________________________________________________
> > __________
> >
> > --
> > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED] For human help, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> 
> 
> 
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to