On 06 Aug 2001 10:01:51 +0100, Tim Phipps wrote:
> 
> I think we can already do conditional code using self modifying
> functions:

Ah yes, I forgot, I use self modifying functions in fvwm-themes to
implement a state. But I would prefer functions to be used on purpose,
to define an interface with parameters that can be called from any place.
Using functions to implement state variables and "switch" is not ok. :)

> But then you'll end up doing a "while" command, then a "switch", then a
> "break" and I think you've got youself a new language to learn. I think
> the SCWM approach is better if this is what you want i.e. put a real
> interpreter in there (I'd prefer TCL since I already know it) so that
> people don't have to learn a new language and we don't have to design
> and test it.

If you ask me, I would place a real interpreter language, tcl is fine.
But this does not seem possible. This would require an absolutely new
syntax. I am ready to rewrite hundreds of kilobytes of fvwm-themes
configs, but I fear that some others have problems to rewrite their.

I only suggested my version of if-else implementation (which I think is
good to have anyway), because I felt it is a better solution than the
"two alternative commands on the same line", suggested previously.

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to