Thread overview
interface template problem
Feb 27, 2006
Philipp Heise
0.147, 0.148 - philosophical question
Feb 27, 2006
Andrew Fedoniouk
Feb 28, 2006
Kyle Furlong
Feb 27, 2006
Regan Heath
Feb 27, 2006
Philipp Heise
February 27, 2006
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


February 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








February 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
February 27, 2006
Regan Heath wrote:
> 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:
> 

problem solved - my version of the compiler was too old.

thnx philipp
February 28, 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.com
> 
> 
> 
> 
> 
> 
> 
> 

I 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.