On Sat, Jul 16, 2011 at 12:02 PM,  <os...@simsassociates.co.uk> wrote:

>> I'll definitely add this.
>
> Great stuff!
>
> Did you consider the other thought - that if .Application is invoked even
> only once, then autoDetect gets automatically turned off? Then if anyone
> wants it (and also wants to use .Application) they could do:
>
> .Application~autoDetectionOn

I considered it.  The problem with it that I see is that you end up
with a side effect that is completely unreleated to the method.  This
would surely be "surprising" to people that had not read the doc.
Which is a lot of people.

So I think I'd rather have an explict method:

.Application~autoDetction(.false or .true) with the default being
false.   Or "ON" or "OFF" for the arguement.  You need to be able to
set the default back to what the actual default is.  In a large
application, some one might want to change the default for part of the
program life, and then restore the default for another part of the
application life.

And some type of convenience method that could be used to set a number
of defaults at one time.  Something like:

d = .directory~new
d~fontName = "Tahoma"
d~fontSize = 14
d~autoDetect = "OFF"
d~useConstDir = "ONLY"
d~symbolFile = "CustomView.h"

.Application~setDefaults(d)

--
Mark Miesfeld

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to