Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Is this a bug or a "feature"?' topicStudent Support Forum > General > "Is this a bug or a "feature"?"

Next Comment >Help | Reply To Topic
Author Comment/Response
Mark W
06/08/99 11:32am

Mathematica is getting mixed up between the input and a local variable:

funct[expression_]:=Module[
{i},
Print[expression];
Print[i];
];

funct[i$1] yields
i$1
i$542
(as expected).

funct[i$] yields
i$543
i$543

Looking at the Trace,
{funct[i$],
Module[{i$},Print[i$];Print[i$];] ,...}

Is the only way around this to make sure that i$ is never given as input?

Thanks,

-Mark W

URL: ,

Subject (listing for 'Is this a bug or a "feature"?')
Author Date Posted
Is this a bug or a "feature"? Mark W 06/08/99 11:32am
Re: Is this a bug or a Forum Modera... 06/20/99 3:40pm
Next Comment >Help | Reply To Topic