Created attachment 470
The patch partly implements this enhancement
This is a suggestion to implement the uniform function call syntax that was
talked about in the first D conference. See the newsgroup thread for more info:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=97654
I've supplied a patch that partly implements this enhancement. Literals don't
work with the patch, this works with the patch: x.foo(), this doesn't work:
3.foo(). I think the parser or similar must be changed for 3.foo() to work.
I'm not sure if any of the added types in the patch should be removed or if
some other types should be added.
Comment #1 by torarind — 2010-09-01T05:49:36Z
This is feature is described in TDPL under 5.9.1 "Pseudo Members and @property Attribute".
Comment #2 by bus_dbugzilla — 2011-11-18T07:33:09Z
*** Issue 6970 has been marked as a duplicate of this issue. ***
Comment #3 by k.hara.pg — 2011-12-26T05:42:06Z
Related:
- Issue 662 - Allow UFCS for basic types and enums
- Issue 6277 - Disallow short floating point literals