ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
exceptions
by Michele Simionato other posts by this author
Jun 9 2004 6:40PM messages near this date
exceptions | exceptions
hungjunglu@[...].com (Hung Jung Lu) wrote in message news:<8ef9bea6.0406091457.6c5ffaec@[...
].com> ...
>  If there are tricks in Lisp to intercept "if", "setq", etc. I'd like
>  to know. Same if these limitations are specific to some particular
>  implementations of Lisp. I greatly suspect that these limitations of
>  Lisp are general, since Lisp does not naturally have prototype-based
>  scopes like onion-skins, and overriding things like "if" could more
>  easily create havoc.
>  
>  regards,
>  
>  Hung Jung

Sorry for the  previous message, but I couldn't resist the temptation
to mock you. So you may realize how irritating certain statements can
be.

BTW, for the sake of other interested readers, I will point out that
in Lisp you can just wrap you code in a macro, and the macro can do 
*everything* on the source code. Including replacing all your "if" and  
"setq" with custom version of them. So practically you get what you want.
It is also explicit, since only the "if" and "setq" in the code inside the 
macro will be redefined, instead of magically change the global meaning of
your basic language, which maybe is not such a good idea.


                             Michele Simionato
Thread:
A Schmolck
hungjunglu
Michele Simionato
hungjunglu
peter
A Schmolck
Jacek Generowicz
Michele Simionato
Michele Simionato
hungjunglu
hungjunglu
A Schmolck
A Schmolck
hungjunglu
A Schmolck
mwh
hungjunglu
lbates
jjl
peter

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved