Navigation

Operators and Keywords

Function List:

C++ API

: val = filemarker ()
: old_val = filemarker (new_val)
: filemarker (new_val, "local")

Query or set the character used to separate the filename from the subfunction names contained within the file.

By default this is the character ‘>’. This can be used in a generic manner to interact with subfunctions. For example,

help (["myfunc", filemarker, "mysubfunc"])

returns the help string associated with the subfunction mysubfunc located in the file myfunc.m.

filemarker is also useful during debugging for placing breakpoints within subfunctions or nested functions. For example,

dbstop (["myfunc", filemarker, "mysubfunc"])

will set a breakpoint at the first line of the subfunction mysubfunc.

When called from inside a function with the "local" option, the variable is changed locally for the function and any subroutines it calls. The original variable value is restored when exiting the function.

Package: octave