Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > MathLink API > MathLink Mathematica Functions > MathLink Packets >

ReturnExpressionPacket

ReturnExpressionPacket[expr]
is a MathLink packet that contains the expression expr, the result of an EnterExpressionPacket evaluation.
Launch a subsidiary Mathematica kernel process:
Read the first packet:
Write the expression 2+2 to the link without evaluating it:
The packet in the middle of the list shows the current state:
Close the link:
Launch a subsidiary Mathematica kernel process:
In[1]:=
Click for copyable input
Out[1]=
Read the first packet:
In[2]:=
Click for copyable input
Out[2]=
Write the expression 2+2 to the link without evaluating it:
In[3]:=
Click for copyable input
The packet in the middle of the list shows the current state:
In[4]:=
Click for copyable input
Out[4]=
Close the link:
In[5]:=
Click for copyable input
New in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team