www.digitalmars.com         C & C++   DMDScript  

D - language features

reply "cblack01" <cblack01 cox.net> writes:
Hey,


reflection?


parameters using the params keyword like this:

void Print(params string stuffToPrint[])
{
    foreach(oneThing in stuffToPrint) System.Console.WriteLn(oneThing);
}

Then you would call it like this:

Print("Printing ", "variable ", "parameters");


use it since I do a lot of scientific applications that are too



Thanks,

Craig
May 28 2002
parent reply "anderson" <anderson firestar.com.au> writes:
"cblack01" <cblack01 cox.net> wrote in message
news:ad0t37$a9c$1 digitaldaemon.com...


never
 use it since I do a lot of scientific applications that are too
 computationally intensive for an interpreted language.
but many versions can also compile code with the same or better efficiency then C++.
May 31 2002
parent "cblack01" <cblack01 cox.net> writes:

never
 use it since I do a lot of scientific applications that are too
 computationally intensive for an interpreted language.
but many versions can also compile code with the same or better efficiency then C++.
I know. I've done the benchmarking myself. I tested it to be about 5 times slower than native C++ with simple object-oriented test programs. I suspect comparably well is with non-object-oriented simple monolithic programs, like This is just not true. Word to your momma. not in the near future.
Jun 01 2002