Issue 3382 - [tdpl] Implement uniform function call syntax
Summary: [tdpl] Implement uniform function call syntax
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: patch, TDPL
: 6970 (view as issue list)
Depends on: 6277
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-09 03:38 UTC by Jacob Carlborg
Modified: 2012-03-08 02:17 UTC (History)
5 users (show)

See Also:


Attachments
The patch partly implements this enhancement (1.18 KB, patch)
2009-10-09 03:38 UTC, Jacob Carlborg
Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Jacob Carlborg 2009-10-09 03:38:28 UTC
Created attachment 470 [details]
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 Torarin 2010-09-01 05:49:36 UTC
This is feature is described in TDPL under 5.9.1 "Pseudo Members and @property Attribute".
Comment 2 Nick Sabalausky 2011-11-18 07:33:09 UTC
*** Issue 6970 has been marked as a duplicate of this issue. ***
Comment 3 Kenji Hara 2011-12-26 05:42:06 UTC
Related:
- Issue 662 - Allow UFCS for basic types and enums
- Issue 6277 - Disallow short floating point literals
Comment 5 github-bugzilla 2012-03-07 23:19:18 UTC
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b7742f7a733ff73d364c6ed54af70d875d7e911b
Merge pull request #582 from 9rnsr/fix3382_ufcs

Issue 3382 - [tdpl] Implement uniform function call syntax