annotate run/t/template_class_16_B.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 60ceb3e2b160
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
790
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
1 // $HeadURL$
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
2 // $Date$
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
3 // $Author$
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
4
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
5 // @author@ Johan Granberg <lijat.meREM@VEgmail.com>
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
6 // @date@ 2006-01-03
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 790
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5970
790
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
8
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
9 module dstress.run.t.template_class_16_B;
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
10
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
11 class Module {
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
12 abstract GObject createObject();
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
13 }
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
14
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
15 class Factory(T):T {
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
16 override GObject createObject() {
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
17 return null;
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
18 }
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
19 }
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
20
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
21 class Alocator(T) : T {
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
22 }
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
23
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
24 alias Alocator!(Object) GObject;
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
25 typedef Factory!(Module) GModule;
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
26
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
27 int main(){
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
28 GModule mod=new GModule();
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
29 return 0;
60ceb3e2b160 Johan Granberg <lijat.meREM@VEgmail.com>
thomask
parents:
diff changeset
30 }