octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DEFMETHOD vs. DEFUN


From: Rik
Subject: DEFMETHOD vs. DEFUN
Date: Thu, 23 Nov 2017 14:09:43 -0800

jwe,

Why are some built-in functions defined using the macro DEFMETHOD and
others using DEFUN?  I happened to notice in file-io.cc that textscan() is
defined using DEFMETHOD, but it seems like DEFUN should just be used.

If I go to libinterp/corefcn I see a preference for DEFUN, but a fair
number of DEFMETHOD as well.

grep '^DEFUN' *.cc | wc -l
526
grep '^DEFMETHOD' *.cc | wc -l
110

Just curious,
Rik




reply via email to

[Prev in Thread] Current Thread [Next in Thread]