John...I'm not going to reply to any of your personal comments.  They
don't have any place here.  I haven't made any, and I will continue
not to.

> Joe... relax... this had nothing to do with encapsulation. It was a udf
> (code reuse... not encapsulation) and someone asked how to get a udf in the
> request scope... just pulled something handy from an example I had and
> converted it to request scope. Go to be an get some sleep... this was just
> answering that specific question.

While not all code reuse is encapsulation in the OOP definition of
"encapsulate," all encapsulation in the same definition is, by its own
nature, code reuse.  A class is a template by which objects are
created - simply instantiating one is code reuse.

> And... not just repeat string... run the code... see what it does before
> asking... you might figure it out. It's a neat trick. And if you want to do
> it with cut and paste... do it. 

Before I made my first post, I tried running it and got an exception. 
I don't really think it's a neat trick, as the whole function is
really just one line of code:

string = string & repeatString(" ", desiredLength - len(string))
----------------------------------------------------------
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]

Reply via email to