Writing Bug-Free C/D Code

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Mon Mar 19 05:11:55 PDT 2007


Henning Hasemann wrote:
> On Mon, 19 Mar 2007 08:41:48 +0000 (UTC)
> Thomas Kuehne <thomas-dloop at kuehne.cn> wrote:
> 
>>> 2.)
>>> Another thing would be easy support for stack traced exceptions.
>>> I tried flectioned last weak or so (just for this purpose) but it
>>> didnt want to compile with my code (I think I was still on dmd-1.007 so
>>> it might have been a bug there). I think STE's are of use
>>> to many developers so they should be put into phobos or so.
>> Exactly what problems did you encounter?
> 
> It does not correctly recognise that I'm on phobos I guess because
> when compiling I get:
> 
> flectioned.d(78): module Vararg cannot read file 'tango/core/Vararg.d'
> 
> I use dmd-1.009 and rebuild-0.12 for compiling. OS is linux.
> dmd -c flectioned.d runs fine, so maybe rebuild is the real problem?

That module should only be imported if Object has a method toUtf8(), 
which in Phobos it doesn't. Check your import paths, and make sure 
you're using the right object.d[i].



More information about the Digitalmars-d mailing list