is this a poly Polymorphism?

2011-08-28 Thread hhaammaadd
import std.stdio; class employee { void work() { writeln("I am employee"); } } class manager: employee { void work() { writeln("I am manager"); } } void main() { employee e1 = new manager;//here e1.work();

Re: is this a poly Polymorphism?

2011-08-28 Thread Jonathan M Davis
On Monday, August 29, 2011 04:50:09 hhaammaadd wrote: > import std.stdio; > class employee { > void work() { > writeln("I am employee"); > } > } > > class manager: employee { > void work() { > writeln("I am manager"); >

Re: d2 file input performance

2011-08-28 Thread Heywood Floyd
Christian Köstlin Wrote: > after some optimizing i got better, but was still way slower than c++. > so i started some small microbenchmarks regarding fileio: > https://github.com/gizmomogwai/performance in c++, java and d2. > > christian Hello! Thanks for you effort in putting this together!