On May 22, 2009, at 2:00 PM, Nick Alexander wrote: >> We do this to avoid the (large) overhead of re-creating constants in >> the bodies of loops, functions, etc. Perhaps we need to detect the >> Integer=xxx line explicitly? > > Doing this accurately is equivalent to the halting problem.
Yep. Detecting an assignment to Integer (RealNumber, ...) should be sufficient to eliminate most headaches, especially as this simple assignment is what we tell users to do. > This is what pragmas are for, but do we really want to start > supporting all > these compiler features? When is sage no longer python? A long time ago, e.g. when we started using Integer(...) to wrap integer literals. Despite my work on the preparser, I'm all for keeping it minimal. - Robert --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---