octave-maintainers
[Top][All Lists]
Advanced

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

Re: core, matlab, & OF name conflicts [Was: strsplit needs an update]


From: Richard Crozier
Subject: Re: core, matlab, & OF name conflicts [Was: strsplit needs an update]
Date: Sun, 31 Mar 2013 16:40:17 +0100
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1

On 31/03/2013 16:09, John W. Eaton wrote:
Yes, using packages would be better than prefixes, but don't we still have the problem of conflicting package names? Presumably, TMW will eventually put things like their control toolbox inside a package called control, at which point we will have to do the same to allow for compatibility with code that expects the package prefix on function calls to work.

jwe

Yes, but by then Octave will have supplanted Matlab :-)

Seriously, do you mean the issue would be that the OF control package would *not* have the same name as the maltab package, or that the problem would be that it *would* have the same name and conflict with the OF package?

In the first case, could you have a mechanism to map one package name onto another e.g.

mappkgname OFcontrol control

which you could put in your .octaverc or similar so control.thefunction is the same as OFcontrol.thefunction?

The second case is more difficult, and probably requires changing the package name, but what are the odds they choose the same name in every case?

Richard

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



reply via email to

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