Welcome to Web-News
A Web-based News Reader
Subject Re: DMD 1.035 and 2.019 releases
From Walter Bright <newshound1@digitalmars.com>
Date Wed, 03 Sep 2008 16:29:00 -0700
Newsgroups digitalmars.D.announce

Jarrett Billingsley wrote:
> Speaking of syntactical ambiguity, the expression
>
> S(1, 2, 3)
>
> can, right now, have one of three meanings:
>
> 1. A struct literal for struct S
> 2. A call to S's static opCall
> 3. An instantiation of S and a call to its ctor
>
> Even if opCall goes away, we'll still be left with the ambiguity of
> struct literal vs. ctor.  I'd really, really like to hear Walter's view
> on this but he has responded neither to the thread I posted on
> digitalmars.D nor the bugzilla ticket
> (http://d.puremagic.com/issues/show_bug.cgi?id=2170).

If there's any constructor defined for S, then S(args) is a constructor
call.

If there's any opCall defined for S, then S(args) is an opCall call.

Otherwise, it's a struct literal.

Recent messages in this thread
 
-# DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 01:42 am
.|# Re: DMD 1.035 and 2.019 releases BCS 03-Sep-2008 01:53 am
.-# Re: DMD 1.035 and 2.019 releases Matti Niemenmaa 03-Sep-2008 02:16 am
.|-# Re: DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 02:43 am
.|.-# Re: DMD 1.035 and 2.019 releases Georg Wrede 04-Sep-2008 06:20 pm
.|..\# Re: DMD 1.035 and 2.019 releases Walter Bright 05-Sep-2008 04:24 am
.|# Re: DMD 1.035 and 2.019 releases Lionello Lunesu 03-Sep-2008 02:46 am
.-# Re: DMD 1.035 and 2.019 releases Extrawurst 03-Sep-2008 03:07 am
.|-# Re: DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 03:28 am
.|.-# Re: DMD 1.035 and 2.019 releases Extrawurst 03-Sep-2008 03:31 am
.|.|-# Re: DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 03:58 am
.|.|.|# Re: DMD 1.035 and 2.019 releases Extrawurst 03-Sep-2008 04:54 am
.|.|.-# Re: DMD 1.035 and 2.019 releases bobef 03-Sep-2008 07:15 am
.|.|..-# Re: DMD 1.035 and 2.019 releases 0ffh 03-Sep-2008 04:30 pm
.|.|...-# Re: DMD 1.035 and 2.019 releases Jarrett Billingsley 03-Sep-2008 05:50 pm
.|.|....-# Re: DMD 1.035 and 2.019 releases (Current message) Walter Bright 03-Sep-2008 07:29 pm
.|.|.....-# Re: DMD 1.035 and 2.019 releases bearophile 03-Sep-2008 07:52 pm
.|.|.....|-# Re: DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 08:03 pm
.|.|.....|.-# Re: DMD 1.035 and 2.019 releases bobef 04-Sep-2008 01:11 am
.|.|.....|.|\# Re: DMD 1.035 and 2.019 releases Robert Fraser 04-Sep-2008 01:21 am
.|.|.....|.-# Re: DMD 1.035 and 2.019 releases Tomas Lindquist O... 04-Sep-2008 07:44 am
.|.|.....|.|-# Re: DMD 1.035 and 2.019 releases Denis Koroskin 04-Sep-2008 07:58 am
.|.|.....|.||\# Re: DMD 1.035 and 2.019 releases Tomas Lindquist O... 04-Sep-2008 09:13 am
.|.|.....|.|\# Re: DMD 1.035 and 2.019 releases Walter Bright 04-Sep-2008 01:26 pm
.|.|.....|.\# Re: DMD 1.035 and 2.019 releases Christopher Wright 04-Sep-2008 08:51 pm
.|.|.....-# Re: DMD 1.035 and 2.019 releases Jarrett Billingsley 03-Sep-2008 08:04 pm
.|.|.....||# Re: DMD 1.035 and 2.019 releases Moritz Warning 03-Sep-2008 08:22 pm
.|.|.....|\# Re: DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 10:56 pm
.|.|.....-# Re: DMD 1.035 and 2.019 releases Pablo Ripolles 04-Sep-2008 05:18 am
.|.|.....|-# Re: DMD 1.035 and 2.019 releases Pablo Ripolles 04-Sep-2008 06:13 am
.|.|.....|.-# Re: DMD 1.035 and 2.019 releases Walter Bright 04-Sep-2008 01:22 pm
.|.|.....|..\# Re: DMD 1.035 and 2.019 releases Pablo Ripolles 04-Sep-2008 05:20 pm
.|.|.....\# Re: DMD 1.035 and 2.019 releases Georg Wrede 04-Sep-2008 06:37 pm
.|.-# Re: DMD 1.035 and 2.019 releases Ary Borenszweig 03-Sep-2008 07:39 am
.|..-# Re: DMD 1.035 and 2.019 releases Mosfet 03-Sep-2008 08:11 am
.|...\# Re: DMD 1.035 and 2.019 releases Extrawurst 03-Sep-2008 08:17 am
.-# Re: DMD 1.035 and 2.019 releases Extrawurst 03-Sep-2008 03:26 am
.|\# Re: DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 03:32 am
.-# Re: DMD 1.035 and 2.019 releases Max Samukha 03-Sep-2008 03:32 am
.|-# Re: DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 03:57 am
.|.-# Re: DMD 1.035 and 2.019 releases Max Samukha 03-Sep-2008 04:34 am
.|..\# Re: DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 04:40 am
.|# Re: DMD 1.035 and 2.019 releases Steven Schveighoffer 03-Sep-2008 10:02 am
.-# Re: DMD 1.035 and 2.019 releases dsimcha 03-Sep-2008 01:32 pm
.|-# Re: DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 02:07 pm
.|.\# Re: DMD 1.035 and 2.019 releases dsimcha 03-Sep-2008 02:50 pm
.-# Re: DMD 1.035 and 2.019 releases Sean Kelly 03-Sep-2008 02:54 pm
.|-# Re: DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 03:26 pm
.|.-# Re: DMD 1.035 and 2.019 releases Chris R. Miller 03-Sep-2008 06:09 pm
.|..-# Re: DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 06:26 pm
.|...-# Re: DMD 1.035 and 2.019 releases Ary Borenszweig 03-Sep-2008 08:50 pm
.|....|# Re: DMD 1.035 and 2.019 releases Bill Baxter 03-Sep-2008 09:00 pm
.|....-# Re: DMD 1.035 and 2.019 releases Walter Bright 03-Sep-2008 10:57 pm
.|.....-# Re: DMD 1.035 and 2.019 releases Steven Schveighoffer 04-Sep-2008 12:19 am
.|......\# Re: DMD 1.035 and 2.019 releases Walter Bright 04-Sep-2008 01:32 am
.-# Re: DMD 1.035 and 2.019 releases のしいか (nos... 03-Sep-2008 09:23 pm
.|\# Re: DMD 1.035 and 2.019 releases davidl 03-Sep-2008 11:05 pm
.|# Re: DMD 1.035 and 2.019 releases Jarrett Billingsley 03-Sep-2008 09:38 pm
.|# Re: DMD 1.035 and 2.019 releases Bill Baxter 03-Sep-2008 09:47 pm
.-# Re: DMD 1.035 and 2.019 releases Jarrett Billingsley 04-Sep-2008 08:48 am
.||# Re: DMD 1.035 and 2.019 releases Tomas Lindquist O... 04-Sep-2008 09:10 am
.|\# Re: DMD 1.035 and 2.019 releases Bruno Medeiros 08-Sep-2008 09:39 am
.|# Re: DMD 1.035 and 2.019 releases Jarrett Billingsley 03-Sep-2008 10:17 pm
.|# Re: DMD 1.035 and 2.019 releases Bill Baxter 04-Sep-2008 02:49 am
.-# Re: DMD 1.035 and 2.019 releases Jarrett Billingsley 04-Sep-2008 10:24 am
.||# Re: DMD 1.035 and 2.019 releases Tomas Lindquist O... 04-Sep-2008 12:28 pm
.|\# Re: DMD 1.035 and 2.019 releases Russell Lewis 06-Sep-2008 08:38 am
.-# Re: DMD 1.035 and 2.019 releases Bill Baxter 04-Sep-2008 05:30 pm
.|-# Re: DMD 1.035 and 2.019 releases Walter Bright 04-Sep-2008 05:37 pm
.|.\# Re: DMD 1.035 and 2.019 releases Max Samukha 05-Sep-2008 01:39 am
.|# Re: DMD 1.035 and 2.019 releases Bill Baxter 04-Sep-2008 05:46 pm
.|# Re: DMD 1.035 and 2.019 releases Jarrett Billingsley 06-Sep-2008 03:03 pm
.|# Re: DMD 1.035 and 2.019 releases Jarrett Billingsley 08-Sep-2008 03:12 pm
.\# Re: DMD 1.035 and 2.019 releases Jarrett Billingsley 08-Sep-2008 03:12 pm