codegen - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : codegen Package : codegen/makevoid

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]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam