Kwang is right. Everything in .NET is an object so even if you have some code like
this embedded in an .aspx file
<script runat="server">
public string SomeFunction()
{
...
return "";
}
</script>
that function becomes a method in the page object when it is compiled.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Kwang Suh
Sent: Thursday, September 30, 2004 12:22 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] Function Libraries
You need to show me your VB.NET code then, because what you described is not possible.
Java cannot have free standing methods.
----- Original Message -----
From: Jeffry Houser <[EMAIL PROTECTED]>
Date: Thursday, September 30, 2004 10:10 am
Subject: Re: [CFCDev] Function Libraries
> At 11:46 AM 9/30/2004, you wrote:
> >Anyhow,
> >
> >back to the original question.
> >
> >In other OO language, we wouldn't be having this debate about
> UDFs
> >because, well, most OO languages (C++ being the most visible
> exception)
> >don't allow you to create UDFs. They would be methods of an
> >object. Since CF however has all sorts of non-OO ways of doing
> things, it
> >tends to muddy up the issue.
>
> I think most languages these days have a mix of OO and
> Procedural
> features. CF is definitely one of them. C++, as you mentioned is
> also a
> hybrid.
> I know in VB.NET I created some procedures that were not a part
> of
> classes (I imagine you can do the same w/ Functions)
>
> How about Java? Or is that Java 100% class specific? ( I'm
> asking
> because I don't know, not to start an argument ).
>
>
> --
> Jeffry Houser, Web Developer, Writer, Songwriter, Recording Engineer
> AIM: Reboog711 | Phone: 1-203-379-0773
> --
> My Books: <" target="l">http://www.instantcoldfusion.com>
> My Recording Studio: <" target="l">http://www.fcfstudios.com>
> My Energetic Acoustic Rock Band: <"
> target="l">http://www.farcryfly.com>--
> When did Reality Become TV
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
> in the message of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
>
> An archive of the CFCDev list is available at www.mail-
> archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]