Re: Exceptions documentation

2012-01-17 Thread Mail Mantis
2012/1/17 simendsjo simend...@gmail.com:
 Where is documentation on exceptions located?
 Not here http://www.d-programming-language.org/exception-safe.html
 or here http://www.d-programming-language.org/errors.html
 or here http://www.d-programming-language.org/phobos/std_exception.html

 Do I have to browse druntime/phobos, or is it documented somewhere?

Is this what you need?
http://www.d-programming-language.org/statement#TryStatement


Re: floating point precision

2012-01-11 Thread Mail Mantis
All is passed, to print, say, 50 signs after period use following:
writefln(%.50f, var);


2012/1/12 dsmith dsm...@nomail.com:
 How do you increase floating point precision beyond the default of 6?
 example:

 double var = exp(-1.987654321123456789);
 writeln(var);

 -- 0.137016

 Assuming this result is only an output format issue and that operations are
 still using double's 64 places, if var above is passed to a function, are all
 64 places passed?  Must it be passed by reference to make it so?