makevoid - Maple Help

Online Help

All Products    Maple    MapleSim


codegen

  

makevoid

  

do not return any values from a Maple procedure

  

dontreturn

  

do not return a value from a Maple procedure

 

Calling Sequence

Parameters

Description

Examples

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

withcodegen:

f := proc(x,A::array(1..2)) A[1] := x^2; return x,A end proc:

dontreturnA,f

procx,A::array1..2A[1]x^2;returnxend proc

(1)

makevoidf

procx,A::array1..2A[1]x^2;returnend proc

(2)

See Also

codegen[declare]