octave-maintainers
[Top][All Lists]
Advanced

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

Re: def const in .oct file


From: Tom Holroyd
Subject: Re: def const in .oct file
Date: Tue, 9 May 2006 11:16:26 -0400 (EDT)

On Tue, 9 May 2006, John W. Eaton wrote:

With 2.9.x, you can use

 autoload ("AF_UNIX", "/full/name/of/connect.oct");

in a PKG_ADD file that is installed in the same directory as connect.oct.

Oh!  So that's what that's for.

Instead of trying to scan the compiled file, Octave's build process scans the sources for DEFUN macros and lines that look like this:

 // PKG_ADD: ...

or ## PKG_ADD: in an .m file.

In this example:

## PKG_ADD: dispatch ("fft", "gfft", "galois");

dispatch does function overloading for variables of type galois.

Cool.


reply via email to

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