roxen.lists.pike.general

Subject Author Date
Suggestion: support '&' in argument define ¹ùÑ©ËÉú—­zºZŸ ¤¢x¢ <¹ùÑ©ËÉú—­zºZŸ ¤¢x¢[at]nirgendwo> 09-10-2009
Pike support ¡®|¡¯ in argument define:

 

void look(Char|Room target);

 

I suggest to support ¡®&¡¯:

 

void look(HasName&HasDesc target);

 

Because for ¡®look¡¯, anything has a name and description is acceptable.

 

Current in pike, we must add a new class Lookable{inherit HasName; inherit
HasDesc;}, that is only for ¡®look¡¯ and not general.

 

Xuesong Guo