How does D handle null pointers?

2010-08-20 Thread Adam B
trying to troubleshoot a massive web application that crashes with the phrase "Segmentation Fault" after running just fine for two weeks? Without a stack trace it's not reasonable. Does D address this problem? Perhaps another compiler switch similar to the existing -noboundscheck ? Cheers - Adam B

Re: How does D handle null pointers?

2010-08-20 Thread Adam B
> Walter has refused to put in null checks on the theory that the OS does it for > you - hence the segfault. Of course, then the only way to get a stacktrace is > to > either have a segfault handler which prints one or to look at a core dump > (assuming that you get one). Neither is a very pleasan

Re: How does D handle null pointers?

2010-08-20 Thread Adam B
> C# and Java are badly designed, D may do better. In my opinion a better > solution to this problem is to: > 1) Introduce non-nullable pointers/references, to denote them I have proposed > a trailing @. > 2) Require explicit tests every time a nullable pointers/references is about > to be deref

Re: How does D handle null pointers?

2010-08-23 Thread Adam B
Sweet! Thanks, Sean. I was fully expecting this to be one of those threads where a lot of noise gets made but, in the end, nobody can agree on a solution. Printing a stack trace is a big step in the right direction. > > Ok I can do this. >

Re: How does D handle null pointers?

2010-08-23 Thread Adam B
I was pondering bearophile's idea of having compile-time null checking. Since adding new language syntax is often a hard thing to sell to the language authors, perhaps we could get by with just a compiler warning? Some static code analysis. For example: -- char[] foo() { if (

Where do I post website bugs?

2010-08-30 Thread Adam B
Hello all, Who maintains http://www.d-programming-language.org/ and where should I report bad links to? Thanks - AdamB

Re: Where do I post website bugs?

2010-08-30 Thread Adam B
t where to get accurate information on the D language. This has been one of my primary frustrations with trying to learn D 2.0. On Mon, Aug 30, 2010 at 9:35 AM, Andrei Alexandrescu wrote: > On 8/29/10 23:35 PDT, Adam B wrote: >> >> Hello all, >> >> Who maintains http:

Re: Please comment on http://d-programming-language.org/

2010-09-03 Thread Adam B
How is the website programmed? If done properly the page content is independent of the style. Use page templates and CSS stylesheets so that you have a single point of change for the entire website. Stay away from static HTML files. Use PHP, JSP, Freemarker or something similar. Using styleshe

Re: Well, it's been a total failure

2010-09-14 Thread Adam B
Hey, Vladimir. I've had good luck using DMD2 under a 32bit chroot environment. If you'd like instructions on how to do that I can provide them (email me directly). After you compile your program under chroot you can run it in 64bit mode so long as you have the 32bit compatibility libraries insta