Skip to content

lastwarn

builtin · libnexusinterp/corefcn/error-proprietary.cc

: msg = lastwarn ()
: [msg, msgid] = lastwarn ()
: lastwarn (msg)
: lastwarn (msg, msgid)

Query or set the most recent warning message and its identifier.

When a new value is given the previous one is returned if outputs are requested. The text is stored as is, without format processing.