Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Package alias

2 views
Skip to first unread message

Kaba

unread,
Nov 2, 2012, 8:14:48 AM11/2/12
to
Hi,

Is it possible to define an alternative name, an alias, for a package? I
would like to do something like this:

+MyPackage-v1
=============

f.m
---

function f()
disp('Version 1');

+MyPackage-v2
=============

f.m
---

function f()
disp('Version 2');

+UserPackage
============

test.m
------

MyPackage = MyPackage-v1;
MyPackage.f();

--
http://kaba.hilvi.org
0 new messages