On 6/14/07, Mark Overmeer <[EMAIL PROTECTED]> wrote:
I had suggested syntax like this, in Perl6:

  class Mail::Message {
        `base class for message types

     .has $msgid;
        `The (internet wide) unique string which identifies this
        `message object.  May be undef as long as the message is
        `begin composed.

     .has $content_type = 'text/plain';
  }

I always thought this could be achieved using traits:

 class Mail::Message is doc("base class for message types") {
    .has $msgid is doc("The (internet wide) unique string which
identifies this message object.  May be undef as long as the message
is begin composed.");

    .has $content_type = 'text/plain';
 }

--
Aankhen
(We have no branches.)

Reply via email to