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 10 2004 9:35AM messages near this date
exceptions | exceptions
Jacek Generowicz <jacek.generowicz@[...].ch>  wrote in message news:<tyf8yevdgoz.fsf@[...].ch
> ...
>  I'm pretty sure that Scheme allows you
>  to do this without any restriction.

Indeed. I knew it was possible to redefine macros but I did not expect
it was possible to redefine "built-in" "globally" so easily:

 (define-macro (if c . args)
  ''surprise!)

(display (if #t 'true 'false)) ;=>  surprise

By "globally" I mean that everything that depends of "if" will be modified:

(display (when #t 1)) ;=>  surprise

which is a recipe for disasters. So I see the logic of the restriction
in Common Lisp.


           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