help-octave
[Top][All Lists]
Advanced

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

Re: octave function name resolution (how conflict is handled)


From: Max Brister
Subject: Re: octave function name resolution (how conflict is handled)
Date: Sat, 25 Aug 2012 11:02:35 -0600

On Fri, Aug 24, 2012 at 7:43 PM, Peng Yu <address@hidden> wrote:
> Hi,
>
> Superficially, its seems that the name resolution in octave is similar
> to path resolution in bash (or some other shells). I.e., the first
> function that matches the name in the path is used.

This is correct.

> 'lookfor' seems to be able to find all functions with the same in the
> path. But it seems still troublesome to handle the conflicts between
> names. I'm familiar with many other languages. Most languages solve
> this problem by using namespaces. I'm wondering if my understanding of
> the name resolution correct for octave and whether there is a better
> way to handle name conflicts in octave.

Only of the persistent problems in Octave (and matlab) is that there
isn't any good way of dealing with name conflicts. You can use the
builtin function to call functions which might have been overloaded.
Recently matlab has added support for packages (similar to java
packages), but Octave does not support them yet.

> Thanks!
>
> --
> Regards,
> Peng

-- 
Max Brister


reply via email to

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