On Saturday November 05 2016 20:51:09 Ryan Schmidt wrote:

> Instead of a procedure that the portfile calls directly, you would probably 
> want to use an "option" (a variable with extra features) and an "option_proc" 
> (a procedure that gets called automatically when an option's value is 
> changed).

Thinking about this a bit more: isn't an "option" a variable that's actually a 
procedure in disguise? IOW, if I use an option plus an option_proc, am I not in 
fact using 2 procedures, for a net result that looks exactly the same to the 
user.

I should write out the code to be absolutely certain, but I'm fairly sure that 
the option_proc would look almost exactly the way the procedure I described 
would look.

Correct? And if so, are there actual advantages to using that more advanced 
approach other than that it uses a few nifty features from base?

R.

Reply via email to