How can i make DMD (link/optlink) not to generate a map file?
-L/NOM or -LNOMAP
both seem not work.
Jarrett Billingsley wrote:
On Sat, Mar 21, 2009 at 3:45 PM, grauzone n...@example.net wrote:
Also, I noticed that dsss build -full seems to be the way to pass this
flag on the command line. But the project is recompiled even when no file
was modified at all. This is not good: it should only
I have spent one day to find out an error.
-
class MyTime
{
this(char[] timestring)
{
Time t;
int p = tango.time.TimeStamp.iso8601(timestring, t);
//...
}
// other methods
}
unittest
{
MyTime mt = new
Hello Qian,
Oh god. I have to add .dup at the end of every string to avoid
potential program errors. This is so incredible
Run it on linux and it will seg-v when you try to access a literal string.
Oh, and that issue is in no way unique to D. Any language with mutable strings
will have
On Mon, Mar 23, 2009 at 11:11 AM, torhu n...@spam.invalid wrote:
On 23.03.2009 10:02, Frank Benoit wrote:
How can i make DMD (link/optlink) not to generate a map file?
-L/NOM or -LNOMAP
both seem not work.
I don't know, but bud manages this somehow, so Derek Parnell might know.
rm *.map
On Mon, Mar 23, 2009 at 12:15 PM, BCS n...@anon.com wrote:
Hello Qian,
Oh god. I have to add .dup at the end of every string to avoid
potential program errors. This is so incredible
Run it on linux and it will seg-v when you try to access a literal string.
Oh, and that issue is in no
On Mon, 23 Mar 2009 11:07:16 -0400, Qian Xu quian...@stud.tu-ilmenau.de
wrote:
I have spent one day to find out an error.
-
class MyTime
{
this(char[] timestring)
{
Time t;
int p =
On Mon, 23 Mar 2009 10:02:28 +0100, Frank Benoit wrote:
How can i make DMD (link/optlink) not to generate a map file?
-L/NOM or -LNOMAP
both seem not work.
You can't using dmd. It doesn't generate the right linker options for you
to avoid the map file. I do it in Bud by not having DMD
On Mon, Mar 23, 2009 at 8:11 PM, Brian digitalm...@brianguertin.com wrote:
is it possible to write a generic .find function for arrays that ignores
strings and so doesn't cause conflicts? I think in D2 its easy by putting
an if() constraint on the template, but is it possible in D1? like:
D2's
Try the following:
int find(T)(T[] array, T obj) if (!is(T : char))
{
foreach (i, v; array) {
if (v == obj)
return i;
}
return -1;
}
10 matches
Mail list logo