octave-maintainers
[Top][All Lists]
Advanced

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

Re: Autoloading of toolboxes?


From: David Bateman
Subject: Re: Autoloading of toolboxes?
Date: Mon, 29 Jan 2007 16:54:02 +0100
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

Bill Denney wrote:
> David Bateman wrote:
>> Michael Creel wrote:
>>  
>>> What's the advantage of not automatically loading whatever is
>>> available?
>>>     
>> It might not be desirable to load octplot, tsa etc automatically as they
>> overload existing functionality..
>>   
> We could assume that people would only install packages that they
> always wanted loaded (not a perfect assumption by any means).  There
> could be another package option that would have functionality like:
>
> pkg load pkgname manual
>
> vs.
>
> pkg load pkgname auto
>
> Where it would touch or remove a file named PKG_AUTOLOAD in the
> package's directory whose existence would control auto loading.  All
> packages would be set to autoload by default and people could easily
> turn off the auto loading.  That sounds like it's the most flexible
> and simple (from a user's point of view at least) to me.
>
> Bill
>
I think more appropriate syntax for this would be

pkg manual pkgname
pkg auto pkgname

and then have

## PKG_ADD: pkg("load","auto");

in pkg.m to load only the packages marked as auto. This makes sense to
me, who wants to implement it :-)

Regards
David


-- 
David Bateman                                address@hidden
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



reply via email to

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