digitalmars.D - interface template problem
- Philipp Heise (9/9) Feb 27 2006 Hi,
- Andrew Fedoniouk (10/10) Feb 27 2006 Walter, what is the global purpose of recent beautifications?
- Kyle Furlong (3/26) Feb 27 2006 I think this recent push might be that Walter wants some neat, new for D...
- Regan Heath (19/26) Feb 27 2006 Can you post more code, my attempt at replicating the problem seems to
- Philipp Heise (3/20) Feb 27 2006 problem solved - my version of the compiler was too old.
Hi, i tried this with my interface template and it doesn't compile/work : interface XYZ(T) { .. public void foo(XYZ!(T) bar); .. } how can i achieve the desired effect ? thnx Philipp
Feb 27 2006
Walter, what is the global purpose of recent beautifications? I am speaking about regexps, if(;) and on_scope_exit() & co. What is the major goal of current D development (big picture)? For me these changes seems like sporadic efforts to attach bells and whistles. They double stuff what is already in language and yet increase entropy of D grammar significantly. So sorry but I would like to get an idea of directions D is moving. Thanks in advance, Andrew. http://terrainformatica.com
Feb 27 2006
Andrew Fedoniouk wrote:Walter, what is the global purpose of recent beautifications? I am speaking about regexps, if(;) and on_scope_exit() & co. What is the major goal of current D development (big picture)? For me these changes seems like sporadic efforts to attach bells and whistles. They double stuff what is already in language and yet increase entropy of D grammar significantly. So sorry but I would like to get an idea of directions D is moving. Thanks in advance, Andrew. http://terrainformatica.comI think this recent push might be that Walter wants some neat, new for D, features to present at his shindig this year. I could be wrong though.
Feb 27 2006
On Mon, 27 Feb 2006 18:42:52 +0000 (UTC), Philipp Heise <Philipp_member pathlink.com> wrote:i tried this with my interface template and it doesn't compile/work : interface XYZ(T) { .. public void foo(XYZ!(T) bar); .. } how can i achieve the desired effect ?Can you post more code, my attempt at replicating the problem seems to work: import std.stdio; interface XYZ(T) { public void foo(XYZ!(T) bar); } class A : XYZ!(int) { public void foo(XYZ!(int) bar) { writef("a"); } } void main() { A a = new A(); XYZ!(int) b; a.foo(b); } Regan
Feb 27 2006
Regan Heath wrote:On Mon, 27 Feb 2006 18:42:52 +0000 (UTC), Philipp Heise <Philipp_member pathlink.com> wrote:problem solved - my version of the compiler was too old. thnx philippi tried this with my interface template and it doesn't compile/work : interface XYZ(T) { .. public void foo(XYZ!(T) bar); .. } how can i achieve the desired effect ?Can you post more code, my attempt at replicating the problem seems to work:
Feb 27 2006