Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Writing functions that automatically localize dummy variables? ( like Table,Sum,etc...)
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Brentt

Posts: 60
Registered: 9/24/11
Writing functions that automatically localize dummy variables? ( like Table,Sum,etc...)
Posted: Jun 29, 2013 4:49 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


Hello, I often find myself writing functions that have dummy variables a la
Integrate, Table, Sum, etc.

The built-in functions have a nice feature where they automatically
localize the variable as you type in the argument that specifys the dummy
variable. e.g.

Table[k, {k (*<- i is scoped and turns green immedietely when typed here
*), 1, 2}]

Is there a way to give my own functions this feature?

Thank you for any help.





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.