Navigation

Operators and Keywords

Function List:

C++ API

: […] = builtin (f, …)

Call the base function f even if f is overloaded to another function for the given type signature.

This is normally useful when doing object-oriented programming and there is a requirement to call one of Octave’s base functions rather than the overloaded one of a new class.

A trivial example which redefines the sin function to be the cos function shows how builtin works.

sin (0)
 ⇒ 0
function y = sin (x), y = cos (x); endfunction
sin (0)
 ⇒ 1
builtin ("sin", 0)
 ⇒ 0

Package: octave