help-octave
[Top][All Lists]
Advanced

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

Re: mkoctfile: Problems sometimes during linking of text file


From: Joao Cardoso
Subject: Re: mkoctfile: Problems sometimes during linking of text file
Date: Tue, 27 Jun 2000 20:09:11 +0100

"John W. Eaton" wrote:
> 
> [Sorry to quote all of this, but it has been a while, so the context
> might be useful.  --jwe]
> 
> On 27-Apr-2000, Joao Cardoso <address@hidden> wrote:
> 
> | "John W. Eaton" wrote:
> | >
> | > On 20-Apr-2000, Stef Pillaert <address@hidden> wrote:
> | ...
> | > | And a second tought: it would even be greater if the need for making the
> | > | symbolic links wouldn't be necesarry any more: just having one lib, 
> with all
> | > | the functions in it, that can be called from octave. Is this possible, 
> or
> | > | unrealistic?

...

> |
> | >  But why bother?  Don't links work well
> | > enough?
> |
> | Perhaps not. And I think that this has been already addressed in this
> | mailing list.
> |
> | If my multi-function file has to keep an internal global state variable,
> | "static int state", e.g., with file linking the "state" variable will be
> | local to each linked file/function, not global to all defined functions.
> | For simple variables, one could use "set/get_global_value", but for
> | complex structures...
> 
> No, because here is what is supposed to happen.  Assume we have one
> file with two names (hard links) min.oct and max.oct.  When you ask

...

> So global variables should work fine.

And they do now, I checked. But at some time in the past (2.1.14
perhaps) they didn't. RTD_LAZY related, I supose.

This means that .oct 'libraries' are possible, as long as one starts
calling them by their .oct name, and without the need of having links,
which are hard to mantain.

Thanks,
Joao

> jwe



-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

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