Hi Ed
Drew Speedie, may he rest in peace, did almost exactly what you're
saying. He named the method zreadme which put it almost exclusively at
the bottom of the property list and one could access it quickly with a
couple of Ctrl+Alt+Zs.
Message: 9
Date: Thu, 10 Aug 2006 21:27:37 -0400
From: Ed Leafe <[EMAIL PROTECTED]>
Subject: Re: Documenting classes
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
On Aug 10, 2006, at 11:10 AM, Karl Kaufmann wrote:
> When I design a class, I like to write some documentation explaining
> how to use the class. I have been adding a method called "readme"
> where
> I add documentation but with the text commented out. Does this add
> any
> excessive overhead to running a form, either in terms of the speed of
> the form or the memory used? Is there any better way to document a
> class so that it is always available when I am using it?
No, unless you're at the absolute limit of available memory where
having those extra 2K bytes taken up by your method will make the
difference between Rushmore kicking in or not. If you're really
paranoid about performance, bracket your readme method like this:
#IF .F.
This is my readme comments. They can be quite long...
...
...
This is the end of the readme.
#ENDIF
Now when your class is compiled, the readme() method will take up no
memory at all.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.