roxen.lists.pike.general

Subject Author Date
Re: overloading again. Martin Bähr <mbaehr[at]email[dot]archlab[dot]tuwien[dot]ac> 29-01-2009
On Thu, Jan 29, 2009 at 04:46:50PM +0100, Marc Dirix wrote:
> i.e. if there is a class Mailboxes, with internal mapping containing the 
> actual mailboxes, is it possible to return the mapping containing the 
> mailboxes instead of the object on mapping mymailboxes = Client.Mailboxes ?

for that you would need to overload the = oprator, which is not
possible.
you can only use casting for that: 
mapping mymailboxes = (mapping)Client.Mailboxes();

greetings, martin.
-- 
cooperative communication with sTeam      -     caudium, pike, roxen and unix
offering: programming, training and administration   -  anywhere in the world
--
pike programmer   working in china                      community.gotpike.org
unix system-      iaeste.(tuwien.ac|or).at                     open-steam.org
administrator     caudium.org                                    is.schon.org
Martin Bähr       http://www.iaeste.or.at/~mbaehr/