digitalmars.D.bugs - [Issue 3771] New: warn or disallow method as property usage without property attribute
- d-bugmail puremagic.com (22/22) Feb 05 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3771
- d-bugmail puremagic.com (8/8) Feb 05 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3771
- d-bugmail puremagic.com (7/7) Feb 03 2012 http://d.puremagic.com/issues/show_bug.cgi?id=3771
- d-bugmail puremagic.com (15/15) Feb 03 2012 http://d.puremagic.com/issues/show_bug.cgi?id=3771
http://d.puremagic.com/issues/show_bug.cgi?id=3771 Summary: warn or disallow method as property usage without property attribute Product: D Version: 2.040 Platform: Other OS/Version: Linux Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: baryluk smp.if.uj.edu.pl 06:20:03 PST --- We have now property and in feature we will have other attributes. It is time to not only have this syntax, but actually do something with this information: - emit warning when using method without call brackets on getter/setter - emit warning when using array methods: a.find(b) == find(a, b) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 05 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3771 06:23:04 PST --- Similary with array methods without brackets: a.find = b; auto c = a.toUpper; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 05 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3771 01:31:54 PST --- I belive this bug is almost fixed in compiler in repository. Is Phobos updated accordingly to use property property in array / string functions? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 03 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3771 Jonathan M Davis <jmdavisProg gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisProg gmx.com PST --- What updating would there need to be? If it has property, you use it as a property. If it doesn't you don't. Some of the functions are property, some aren't. You can still use the member function call syntax for arrays regardless. If you want property enforcement to be enabled, then compile with -property. It'll be phased into the normal behavior later. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 03 2012