A function must return a single value. What language uses functions
that don't?
On the other hand, you're write about procedures. However, procedures
are (were) often used to modify values of the passed parameters, which is
what I was referring to below.
At 03:25 PM 04/12/2001 +0100, you wrote:
>Functions have the ability to return a value but don't have to. Procedures
>do not return values.
>
>------------------------------------------------------------------
>Andrew Ewings
>Project Manager
>Thoughtbubble Ltd
>http://www.thoughtbubble.net
>------------------------------------------------------------------
>United Kingdom
>http://www.thoughtbubble.co.uk/
>Tel: +44 (0) 20 7387 8890
>------------------------------------------------------------------
>New Zealand
>http://www.thoughtbubble.co.nz/
>Tel: +64 (0) 9 488 9131
>------------------------------------------------------------------
>The information in this email and in any attachments is confidential and
>intended solely for the attention and use of the named addressee(s). Any
>views or opinions presented are solely those of the author and do not
>necessarily represent those of Thoughtbubble. This information may be
>subject to legal, professional or other privilege and further distribution
>of it is strictly prohibited without our authority. If you are not the
>intended recipient, you are not authorised to disclose, copy, distribute, or
>retain this message. Please notify us on +44 (0)207 387 8890.
>
>
>
>-----Original Message-----
>From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
>Sent: 12 April 2001 18:08
>To: CF-Talk
>Subject: RE: Procedure and Function (Rambling thought)
>
>
>At 12:28 AM 04/12/2001 -0400, you wrote:
> > >From what I remember from my CS classes (my degree is in Electronics, not
> >CS) functions and procedures are devices that use either an individual or
> >multiple attributes to perform some computation.
>
> ;) functions must always return one value. Procedures can return one,
>none, or more than one. I think that is the only distinction.
>
>
> >In the case of a function,
> >at least one value is returned to the calling process. Forgive me if I'm
> >reaching a bit here, but doesn't that remind anyone else of a custom tag or
> >CFX tag? A procedure doesn't return a value, but simply performs an action
> >or actions on attributes passed to it. Taking a bigger stretch, doesn't
> >that sound a bit like an include?
>
> Well, custom tags are similar to procedures. Includes are not. If you
>call an include multiple times in a template it could produce weird side
>effects (or not), depending upon how you wrote the code in the
>include. There is no way to pass values into, or out of, an include. They
>are processed as if they were part of the original code.
>
>
>Jeffry Houser | mailto:[EMAIL PROTECTED]
>AIM: Reboog711 | ICQ: 5246969 | Phone: 860-229-2781
>--
>Instant ColdFusion 5.0 | ISBN: 0-07-213238-8
>Due out June 2001
>--
>DotComIt, LLC
>database driven web data using ColdFusion, Lotus Notes/Domino
>--
>Half of the Alternative Folk Duo called Far Cry Fly
>http://www.farcryfly.com | http://www.mp3.com/FarCryFly
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists