Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home for dartlang.org
« Groups Home
Default constructors for interfaces with default implementation classes ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sean Eagan  
View profile  
 More options May 3 2012, 12:13 pm
From: Sean Eagan <seaneag...@gmail.com>
Date: Thu, 3 May 2012 11:13:12 -0500
Local: Thurs, May 3 2012 12:13 pm
Subject: Default constructors for interfaces with default implementation classes ?

Given:

interface Foo default _Foo {}
class _Foo implements Foo {
  _Foo();

}

It is not currently allowed to instantiate Foo:

new Foo();

Should this be allowed ?

If not, then it also shouldn't be allowed to have a default clause on an
interface unless it declares at least one constructor.

Cheers,
Sean Eagan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Eagan  
View profile  
 More options May 3 2012, 9:20 pm
From: Sean Eagan <seaneag...@gmail.com>
Date: Thu, 3 May 2012 20:20:55 -0500
Local: Thurs, May 3 2012 9:20 pm
Subject: Re: Default constructors for interfaces with default implementation classes ?

filed a bug:

http://dartbug.com/2893

Cheers,
Sean


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Nystrom  
View profile  
 More options May 4 2012, 1:35 pm
From: Bob Nystrom <rnyst...@google.com>
Date: Fri, 4 May 2012 10:35:51 -0700
Local: Fri, May 4 2012 1:35 pm
Subject: Re: [misc] Re: Default constructors for interfaces with default implementation classes ?

Sorry for the delay here. This is an excellent question. I don't see the
value in having a default class without any constructors either.

Filing a bug is probably the best way to summon Gilad on this. :)

Thanks!
- bob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »