[thelist] Friday Freebies

Mark M mark at safefrombees.com
Fri Oct 17 02:12:12 CDT 2003


> <tip type="Homesite" author=".jeff">
> 
> ColdFusion MX 6.1 adds a few new tags to the CFML language, and makes
> changes to some existing tags. If you are using HomeSite+ or Dreamweaver MX
> you can download tag updates so that your IDE is aware of these language
> changes. The updates can be downloaded from
> http://www.macromedia.com/software/coldfusion/downloads/ (scroll down, about
> half way down the page in the right column).
> 
> </tip>


OMG!

Jeff - do you know how HARD I looked over the MM site for those updates! Thanks!!!

<tip type="ColdFusion CFC Interface" author="Mark M">
To create pseudo Interfaces / Abstract Base Classes in a CFC in coldfusion, simply define your 
methods as per normal, except throw a standard exception as it's definition.

For example:
<cfthrow message="This method is virtual and cannot be called" 
               type="com.InterfaceMethodCalledException"
               detail="To call this method, it must first be implemented in a child 
               class of this base class."
               >


That way, if the method is called when it hasn't been defined it will throw an error.

Now you can use the concept of Interfaces with CFCs.
</tip>


Mark

------------------------------------------------------------------
mark at safefrombees.com
ICQ: 3094740
Safe From Bees
[ www.safefrombees.com ]


More information about the thelist mailing list