Re: Writing functions that automatically localize dummy variables? (

*To*: undisclosed-recipients:;*Subject*: [mg131339] Re: Writing functions that automatically localize dummy variables? (*From*: Brentt <brenttnewman at gmail.com>*Date*: Sat, 29 Jun 2013 04:57:31 -0400 (EDT)*Approved*: Steven M. Christensen <steve@smc.vnet.net>, Moderator*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com*Delivered-to*: l-mathgroup@wolfram.com*Delivered-to*: mathgroup-outx@smc.vnet.net*Delivered-to*: mathgroup-newsendx@smc.vnet.net*Newsgroups*: comp.soft-sys.math.mathematica*References*: <CAFJC7XoKpo+=YsnTJSUfUKOZk=8-b6W9mwuB7YY3WEi5yquhDA@mail.gmail.com>

Woops, I meant to write "(* k is scoped..." in the Table example On Fri, Jun 28, 2013 at 8:48 AM, Brentt <brenttnewman at gmail.com> wrote: > 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. >