Perl6 Object Oriented Cookbook (v0.2.1)  
Section 1: Introduction to Object Oriented Perl6  
 
Recipe 1.15: Creating Class Aliases
Last Updated: Sep 8, 2003
Status: Very Likely
      Previous Page   Next Page

How important is this problem to you?
  (Login to Vote)
4.00 Rating, 3 Votes  

How acceptable is the proposed solution?
  (Login to Vote)
4.00 Rating, 1 Vote  

Problem:  

You want to create an alias for a class, either as a temporary placeholder (to be replaced eventually by a new class definition) or for aesthetic reasons.

Solution:  

Use the binding operator:

my ClassAlias := MyClass;

Discussion:

Issue: No sigil?


Log In to Comment


Login / Edit User Info -- Copyright © 2002 Cognitivity -- Previous Page   Next Page