makevoid - Maple Help

codegen

 makevoid
 do not return any values from a Maple procedure
 dontreturn
 do not return a value from a Maple procedure

 Calling Sequence makevoid(f) dontreturn(x, f)

Parameters

 f - Maple procedure x - any value

Description

 • The dontreturn function is used to delete return values from a Maple procedure.  The makevoid function deletes all return values from a Maple procedure.
 • The command with(codegen,dontreturn) allows the use of the abbreviated form of this command.
 • The command with(codegen,makevoid) allows the use of the abbreviated form of this command.

Examples

 > $\mathrm{with}\left(\mathrm{codegen}\right):$
 > f := proc(x,A::array(1..2)) A[1] := x^2; return x,A end proc:
 > $\mathrm{dontreturn}\left(A,f\right)$
 ${\mathbf{proc}}\left({x}{,}{A}{::}\left({\mathrm{array}}{}\left({1}{..}{2}\right)\right)\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{A}{[}{1}{]}{≔}{x}{^}{2}{;}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{return}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{x}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end proc}}$ (1)
 > $\mathrm{makevoid}\left(f\right)$
 ${\mathbf{proc}}\left({x}{,}{A}{::}\left({\mathrm{array}}{}\left({1}{..}{2}\right)\right)\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{A}{[}{1}{]}{≔}{x}{^}{2}{;}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{return}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end proc}}$ (2)