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
> 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
> 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
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.
>
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 (
Hello all,
Who maintains http://www.d-programming-language.org/ and where should
I report bad links to?
Thanks
- AdamB
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:
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
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