Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Pointers' topicStudent Support Forum > General > Archives > "Pointers"

Next Comment >Help | Reply To Topic
Author Comment/Response
Dave Loveall
04/27/99 10:06am

Is there any method by which it is possible to pass a pointer in Mathematica?

As an example, if we define the function:

And then define the variable:

And then call func with our definition:

This will give an error because ''func'' only gets the value of ''val'', not a pointer to it. In most cases (especially in
functional programming) this is fine, but without this capability it becomes necessary to rewrite functions from, say,
C or C++.

I have tinkered with pure functions, but I can't seem to duplicate this functionality.

Dave Loveall

URL: ,

Subject (listing for 'Pointers')
Author Date Posted
Pointers Dave Loveall 04/27/99 10:06am
Re: Pointers Forum Modera... 04/27/99 10:11am
Re: Pointers Dave Loveall 04/27/99 6:40pm
Re: Pointers P.J. Hinton 04/28/99 4:38pm
Next Comment >Help | Reply To Topic