On Friday, 25 January 2013 at 01:17:44 UTC, Ali Çehreli wrote:
On 01/24/2013 12:42 PM, Matthew Caron wrote:
for not null checks
if ( ptr !is null) ...
And too much perl has me wanting to write:
if (ptr is not null)
IIRC, the !is operator is thanks to bearophile.
No, it's from 2002
On Wednesday, 30 January 2013 at 03:38:39 UTC, Chad Joan wrote:
I've read more than once now that 'protected' is considered
useless in D. Why is this?
I've never heard that before. Where have you read that?
Several people, including me, have said that 'package' is useless
-- could that be
variable (or enum) with
them, and
you're
attempting to initialize maint_cont with a RedBlackTree,
which is a
class. It
won't work.
- Jonathan M Davis
I would say that it is arbitrary restriction
...
Yes, IIRC Don once stated that it is a problem with DMD's
architecture.
Most
Alex Moroz wrote:
Hi,
As of present Ddoc doesn't seem to process documenatation for code that
is inserted with mixins.
Bug 2440?
Jonathan M Davis wrote:
Maybe I'm just totally missing something, but this seems really wrong to me.
This program:
import std.stdio;
void main()
{
writeln(2.1);
writeln(2.1 == 2.1);
writeln(3 * .7);
writeln(2.1 == 3 * .7);
auto a = 2.1;
auto b = 3 * .7;
bearophile wrote:
spir:
While I understand some may consider this a nice feature, for me this is an
enormous bug. A great way toward code obfuscation. I like D among other reasons
because it's rather clear compared to other languages of the family.
The main problem here is that I have
Pete wrote:
Ok, i've done some more investigating and it appears that in DMD2 a float NaN is
0x7FE0 (in dword format) but when it initialises a float 'out' parameter it
initialises it with 0x7FA0H. This causes an FPU trap which is where the time
is going. This looks like a bug to me. Can
%u wrote:
Should I post it as a bug, even though I have no code to accompany it?
I have no clue as to where to start my directed search for a minimal case.
Can you post the entire source code?
It's important that it be reproducible. It doesn't need to be minimal -
someone else can reduce it.
%u wrote:
== Quote from Don (nos...@nospam.com)'s article
%u wrote:
Should I post it as a bug, even though I have no code to accompany it?
I have no clue as to where to start my directed search for a minimal case.
Can you post the entire source code?
It's important that it be reproducible
%u wrote:
== Quote from Don (nos...@nospam.com)'s article
Yay for first time compiling dmd :)
Sorry you had to do that!
Had to learn that once anyway :)
Maybe I'll even be able to take a stab at fixing bugs someday..
g
Added your bug as:
http://d.puremagic.com/issues/show_bug.cgi?id=5453
spir wrote:
Hello,
This fails:
class T0 {}
class T1 : T0 {}
class T2 : T0 {}
unittest {
auto t1 = new T1();
auto t2 = new T2();
T0[] ts = [t1, t2];
}
Error: cannot implicitly convert expression (t1) of type __trials__.T0
to __trials__.T2
Error: cannot implicitly convert
Jacob Carlborg wrote:
On 2011-01-26 20:30, Jonathan M Davis wrote:
On Wednesday, January 26, 2011 11:21:55 Brad Roberts wrote:
On 1/26/2011 7:13 AM, Steven Schveighoffer wrote:
Anyone have any clue why this file is properly syntax-aware:
tsukikage wrote:
Please see source in attachment.
The output is
M2 M3 M5 M7 M13 M17 M19 M31 M61 M89 M107 M127 M521 M607 M1279 M2203
M2281 M3217 M4253 M4423
*** M9689***
M9941 M11213 M19937
*** M21701***
M23209
It missed 2 Mersenne Primes 9689 21701.
Is it my program bug or bigint broken?
to do something really useful.
-Don
Jonathan M Davis wrote:
On Saturday 19 March 2011 17:11:56 Don wrote:
Here's the task:
Given a .d source file, strip out all of the unittest {} blocks,
including everything inside them.
Strip out all comments as well.
Print out the resulting file.
Motivation: Bug reports frequently come
Jonathan M Davis wrote:
On Saturday 19 March 2011 18:04:57 Don wrote:
Jonathan M Davis wrote:
On Saturday 19 March 2011 17:11:56 Don wrote:
Here's the task:
Given a .d source file, strip out all of the unittest {} blocks,
including everything inside them.
Strip out all comments as well.
Print
Jonathan M Davis wrote:
Jonathan M Davis wrote:
On Saturday 19 March 2011 18:04:57 Don wrote:
Jonathan M Davis wrote:
On Saturday 19 March 2011 17:11:56 Don wrote:
Here's the task:
Given a .d source file, strip out all of the unittest {} blocks,
including everything inside them.
Strip out
nrgyzer wrote:
Hey guys,
I got Assertion failure: '!vthis-csym' on line 703 in file 'glue.c'
after I add LinkList!(uint) myList; to my source file. I figured out
that the same bug was already reported on http://lists.puremagic.com/
pipermail/digitalmars-d-bugs/2010-October/019237.html
Ticket
Jonathan M Davis wrote:
Greetings All
It has been 2 months since we had release 2.052. Just wondering when is the
2.053 release planned?
There isn't really a release schedule. A release kind of just happens when
Walter decides that it's time or when someone else on the dev team (like Don
Andrej Mitrovic wrote:
I have a hunch that this function is only available on Linux. If
that's so it should maybe be put in a version(linux) statement.
But I just found lrint is in std.math as well so I can actually use that.
There should be no reason to use anything from c.math.
bearophile wrote:
Pedro Rodrigues:
The fact that 'i' and 'j' are deduced to type 'uint' in the second
version. That's the kind of bug that would keep me up at night.
Almost right answer. i and j are size_t, that is not uint in 64 bit
compilations. Unsigned numbers cause the (i-j)
Mr enuhtac wrote:
Hello everyone,
I'm new to D and this list (although I've had a look onto D a few years ago). I
hope you guys can help me with my questions.
At the moment I'm trying to implement some expression template stuff. My first
goal is to encode an expression into a type
Robert Clipsham wrote:
Hey all,
I was wondering if anyone could enlighten me as to why the following
code does not compile (dmd2, latest release or the beta):
Added as bug 5969.
Dmitry Olshansky wrote:
On 24.05.2011 1:33, Andrej Mitrovic wrote:
I've cloned Phobos just a few minutes ago, and I've tried to build it
with unittests, I'm getting these:
Warning: AutoImplement!(C_6) ignored variadic arguments to the
constructor C_6(...)
--- std.socket(316) broken test
Lloyd Dupont wrote:
I tried to add that to my D file
===
public import std.c.windows.windows;
extern(Windows)
{
int GetUserDefaultLocaleName(LPWSTR lpLocaleName, int cchLocaleName);
}
===
Try:
extern(Windows)
{
int GetUserDefaultLocaleNameW(LPWSTR lpLocaleName, int cchLocaleName);
}
Nick Sabalausky wrote:
So my main question: Does DMD do anything like, say, detecting the CPU at
compile time and then enabling instructions only available on that CPU and
up? Or does it do anything like always assuming the target CPU has SSE2?
Anything like that that could cause differences
of the compiler is very slow
More and more people are contributing patches so development has
definitely become faster.
Also Don has more or less taken over development of the CTFE
functionality. Nice trend.
- Only a small community
= no real German community
There is no separate German community
Nick Sabalausky wrote:
Nick Sabalausky a@a.a wrote in message
news:isoltk$1ehd$1...@digitalmars.com...
Don nos...@nospam.com wrote in message
news:isoh6c$15jb$1...@digitalmars.com...
Nick Sabalausky wrote:
So my main question: Does DMD do anything like, say, detecting the CPU
at compile time
Jonathan M Davis wrote:
On 2011-06-12 02:37, bearophile wrote:
Jonathan M Davis:
Certainly, once range propagation has been fully implemented, this
particular will work without needing any casts, but as soon as the
compiler doesn't know what the values of x and y are, I believe that it
would
bearophile wrote:
Currently this is not allowed, but do you desire a feature like this?
struct Foo {
int x, y;
int[100] array;
}
void main() {
auto foos = new Foo[100];
foos[].y += 10; // ***
}
Bye,
bearophile
An interesting use case:
void main()
{
cdouble[100] foos;
Jesse Phillips wrote:
Loopback Wrote:
Hi!
While implementing and overloading several different operators for my
structure I've got stuck with an error.
As noticed in the attachment, in my opBinaryRight function I mimic the
opBinary (left) operator by instantiating the structure itself to
Andrej Mitrovic wrote:
This is just an observation, not a question or anything.
void main()
{
enum width = 100;
double step = 1 / width;
writeln(step); // 0
}
I've just had this bug in my code. I forgot to make either width or 1
a floating-point type. IOW, I didn't do this:
void
Nick Sabalausky wrote:
Anyone have a known-working Windows OMF library for MySQL? Static or
dynamic, I don't care. I've tried fucking everything and I can't get the
dang thing to work. Static was a total no-go. With dynamic, using implib I
got it to link, but calling any of it resulted in an
Jonathan M Davis wrote:
On Monday 08 August 2011 00:33:31 Dmitry Olshansky wrote:
Just lost the best part of an hour figuring the cause of this small
problem, consider:
void main()
{
uint j = 42;
ulong k = 1cast(ulong)j;
ulong m = 1ULj;
assert(k ==
Jonathan M Davis wrote:
On Tuesday 09 August 2011 09:32:41 Don wrote:
Jonathan M Davis wrote:
On Monday 08 August 2011 00:33:31 Dmitry Olshansky wrote:
Just lost the best part of an hour figuring the cause of this small
problem, consider:
void main()
{
uint j = 42;
ulong k
Timon Gehr wrote:
On 08/21/2011 09:10 PM, Don wrote:
bearophile wrote:
Sean Eskapp:
Oh, I see, thanks! This isn't documented in the function documentation!
D purity implementation looks like a simple thing, but it's not
simple, it has several parts that in the last months have be added
Simen Kjaeraas wrote:
On Mon, 22 Aug 2011 22:19:50 +0200, Don nos...@nospam.com wrote:
BTW: The whole weak pure/strong pure naming was just something I
came up with, to convince Walter to relax the purity rules. I'd rather
those names disappeared, they aren't very helpful.
The concepts
I've set up a Windows 7 machine for working on DMD but I can't get
windbg to work properly. Specifically, when I try to debug DMD itself, I
don't get a call stack; I only see the current function.
Everything else seems OK.
Has anyone else experienced this? Any ideas?
On 09.10.2011 13:24, Graham Cole wrote:
I understand from the documentation that the -release compiler switch turns off
array bounds checking for system and trusted functions.
Is it correct that the following code should seg fault when compiled with
-release ?
string[string] h;
h[abc] = def;
On 03.12.2011 20:14, Dejan Lekic wrote:
I recently stumbled on this thread: http://stackoverflow.com/
questions/5666321/what-is-assignment-via-curly-braces-called-and-can-it-
be-controlled
The important part is this:
8 - begin -
The Standard says in section §8.5.1/1,
Steven Schveighoffer wrote:
Don wrote
Steven Schveighoffer wrote:
This is such a common mistake, and really more of an annoyance, I
wonder if it might be better if pow were switched to a template that
called the actual pow after casting the first argument to real. Often
times, one does
Steven Schveighoffer wrote:
On Mon, 06 Apr 2009 08:36:18 -0400, Don nos...@nospam.com wrote:
Sam Hu wrote:
Thank you!
Anothe silly question then:What's the disadvantage to have the
built-in type of i-type?
Regards,
Sam
It's a very nasty type. It supports *, but isn't closed under
Steven Schveighoffer wrote:
On Mon, 06 Apr 2009 09:50:35 -0400, Don nos...@nospam.com wrote:
Steven Schveighoffer wrote:
On Mon, 06 Apr 2009 08:36:18 -0400, Don nos...@nospam.com wrote:
Sam Hu wrote:
Thank you!
Anothe silly question then:What's the disadvantage to have the
built-in type
Don wrote:
bearophile wrote:
Even just:
void main() {
auto a = new uint[10_000_000];
a.sort;
a.sort;
}
Bye,
bearophile
Confirmed. In fact, any size below 0x8F_ works,
and any size = 0x8F_ fails. On DMD2.027 as well.
void main() {
auto a = new uint[0x8F_
Stewart Gordon wrote:
bearophile wrote:
snip
- It can be more flexible (for example mine accepts an optional key
mapping function)
What is there preventing a built-in sort being implemented to do this?
It's more difficult than doing it in a library. For apparently no
benefit at all.
-
Jarrett Billingsley wrote:
On Mon, Apr 6, 2009 at 8:53 AM, Kagamin s...@here.lot wrote:
Is it valid for this to compile:
---
ushort a(ushort b) pure nothrow
{ return b10|b; }
---
And for this to not compile:
---
ushort a(ushort b) pure nothrow
{ return b10; }
---
?
There was a
bearophile wrote:
Are there ways in D2 to tell if a function has the 'pure' attribute?
(To create a parallel_map() function we will want to be sure it takes a pure
mapping function as argument).
Bye,
bearophile
It's easy enough if it's a function pointer or delegate:
int foo(T, U...)(T
Paul D. Anderson wrote:
Looking at Don Clugston's BigInt code I see usage of *this:
BigInt opMulAssign(T: BigInt)(T y) {
*this = mulInternal(*this, y);
return *this;
}
I think I know what it does (passes this by reference) but I can't find any
documentation that explains
Georg Wrede wrote:
Jarrett Billingsley wrote:
On Wed, Apr 29, 2009 at 2:52 AM, Georg Wrede georg.wr...@iki.fi wrote:
Jarrett Billingsley wrote:
Don't you love it? Most C++ template features are discovered. So
are
D's.
Well, one could say that this is the very definition of a well working
Grzegorz Adam Hankiewicz wrote:
After toying with D1 some years ago I've returned to see D2 and ported
it a program I had written in D1. 99% of the time was figuring out why
my chars[] suddenly didn't want to work/interface correctly with C
library calls.
After going through some
Unknown W. Brackets wrote:
This is kinda complicated, hopefully someone will still read it and try it.
DLLs typically don't have access to the host process. Sometimes, when
creating plugins, such access may be desirable. The typical solution is
to have the host and plugins both load a
Lars T. Kyllingstad wrote:
Can someone with knowledge of the DMD source code please explain this
error message for me?
dmd: glue.c:652: virtual void FuncDeclaration::toObjFile(int): Assertion
`!v-csym' failed.
I had a look at the DMD source to try and make some sense of it myself,
but
Georg Wrede wrote:
Don wrote:
Lars T. Kyllingstad wrote:
Don wrote:
Lars T. Kyllingstad wrote:
Can someone with knowledge of the DMD source code please explain
this error message for me?
dmd: glue.c:652: virtual void FuncDeclaration::toObjFile(int):
Assertion `!v-csym' failed.
I had
BCS wrote:
Hello Don,
Size. Since modern CPUs are memory-bandwidth limited, it's always
going to be MUCH faster to use float[] instead of real[] once the
array size gets too big to fit in the cache. Maybe around 2000
elements or so.
I was under the impression that the memory buss could feed
Jarrett Billingsley wrote:
I don't think you can call struct methods at compile-time. Kind of
lame, I know. Try making norm a free function.
Can the D2 compiler modified/improved to allow this?
It sure would be nice.
In fact the D1 compiler should support it too.
BTW a few of the
Lars T. Kyllingstad wrote:
Lars T. Kyllingstad wrote:
Here's a puzzle for you floating-point wizards out there. I have to
translate the following snippet of FORTRAN code to D:
REAL B,Q,T
C --
C |*** COMPUTE MACHINE BASE ***|
C
Jarrett Billingsley wrote:
On Wed, Aug 5, 2009 at 10:16 PM, Donnos...@nospam.com wrote:
Lars T. Kyllingstad wrote:
Lars T. Kyllingstad wrote:
Here's a puzzle for you floating-point wizards out there. I have to
translate the following snippet of FORTRAN code to D:
REAL B,Q,T
C
Jarrett Billingsley wrote:
*On Wed, Aug 5, 2009 at 7:23 AM, Ary Borenszweiga...@esperanto.org.ar wrote:
bearophile escribió:
Jarrett Billingsley:
C++ has static initialization that occurs before main() too. It's just..
hidden.
I see. I have to learn more about C++. Thank you.
bearophile wrote:
Don:
Using CTFE will be a completely different experience after the next release.
What kind of limits do you want to lift? :-)
The unpredictability, mainly. Currently, it's really easy to write code
that you'd expect would work in CTFE, but doesn't. Sometimes because
Rainer Deyke wrote:
Jarrett Billingsley wrote:
Members are always initialized to the default initializer for their
type, which is usually 0 for integer types and NAN for floating point
types. This eliminates an entire class of obscure problems that come
from neglecting to initialize a member
bearophile wrote:
Saaa:
Is there a better way to support arrays of any type?
Currently all the code working with these Structs are templated with loads
of static ifs in them.
You have to ask a more precise question if you want an answer.
Also, is it possible to add a .deepdup property to
Saaa wrote:
Jeremie Pelletier wrote
Saaa wrote:
I think is very bug-prone, isn't it obvious iub should be -5?
ubyte ub = 5;
int iub = -ub; // iub now is 251
What is the reasoning to do it this way?
Minus toggles the most significant bit, be it on a signed or unsigned
type. When converting
Jeremie Pelletier wrote:
Don wrote:
Saaa wrote:
Jeremie Pelletier wrote
Saaa wrote:
I think is very bug-prone, isn't it obvious iub should be -5?
ubyte ub = 5;
int iub = -ub; // iub now is 251
What is the reasoning to do it this way?
Minus toggles the most significant bit
Brad Roberts wrote:
On Thu, 1 Oct 2009, Saaa wrote:
I think is very bug-prone, isn't it obvious iub should be -5?
ubyte ub = 5;
int iub = -ub; // iub now is 251
What is the reasoning to do it this way?
The inclusion of the 'int' part obscures what I think the real problem
is..
Does
Steven Schveighoffer wrote:
On Wed, 07 Oct 2009 09:17:59 -0400, Jarrett Billingsley
jarrett.billings...@gmail.com wrote:
It's also insanely kludgy and ugly. Bleh.
Ugly, yes. Kludgy, I don't think so. It's only a syntax issue. The basic
concept of passing meta-code to the compiler in the
Bill Baxter wrote:
On Wed, Oct 7, 2009 at 11:21 AM, Don nos...@nospam.com wrote:
By contrast, something like Nemerle macros are a kludge. The idea of
providing a 'hook' into the compiler is a horrible hack. It exposes all
kinds of compiler internals. Yes, it has nicer syntax.
Are you
Jarrett Billingsley wrote:
On Wed, Oct 7, 2009 at 11:21 AM, Don nos...@nospam.com wrote:
Steven Schveighoffer wrote:
On Wed, 07 Oct 2009 09:17:59 -0400, Jarrett Billingsley
jarrett.billings...@gmail.com wrote:
It's also insanely kludgy and ugly. Bleh.
Ugly, yes. Kludgy, I don't think so
Jarrett Billingsley wrote:
On Thu, Oct 8, 2009 at 4:00 AM, Don nos...@nospam.com wrote:
So it looks to me like the mechanics of it are basically identical.
Just Nemerle's syntax is nicer.
Only with trivial examples. With more complicated examples they look less
identical. I'm basing my views
Yigal Chripun wrote:
On 12/10/2009 10:47, Don wrote:
Ah, OK. My cursory glance at Nemerle just screamed hack. But first
impressions can be misleading.
No doubt as a C-family language, they have some useful ideas.
But if Christopher's analysis is correct, the macro bit is different
Kagamin wrote:
Zarathustra Wrote:
Oh, I just find out cause of this behaviour in other module I had:
extern (Windows) alias dword function() Tfunc1;
extern (Windows) alias dword function(wstr) Tfunc2;
const Tfunc2 func2;
static this(){
func2 = cast(Tfunc1)0x0; // for DMD2 It is not error!!!
g wrote:
At what point structs are supported in CTFE.
Cause this fails in dmd 2.036:
import std.metastrings;
pragma(msg,toStringNow!(A.init.a));
struct A{
uint a;
}
with this message (note that the end seems truncated):
g...@g-desktop:~/Documentos/NCHESS$ dmd oh
oh.d(3): Error: no
g wrote:
Don Wrote:
You can do stuff like:
struct Foo {
int x;
}
enum Foo b = Foo(56);
strange. you can do that only if there is no constructor.
It also works with opCall. ctor calls don't yet work in CTFE calls from
module scope (works OK inside a function) -- structural problem
Sam Hu wrote:
DMD2.036.
Under dmd/phobos release package,inside samples\d\mydll folder,there is a
sample to write dll and import lib fille from.It compiled and runs fine.But
when I try to modify a bit,it produce strange error problem.Kindly refer to the
sample for source.
Beware of bug
Sam Hu wrote:
import tango.io.Stdout;
void main()
{
Stdout.formatln;
}
dmd crashed.
I've created bug 3495 for it.
Sam Hu wrote:
How can I reach something like below code:
int a=1;
int b=2;
int c=(int a,int b){
return a+b;}
writefln(Result:%d,c);
Thanks in advance.
You need to call the delegate you've made.
int a=1;
int b=2;
int c=(int a,int b){
return a+b;}(a,b);
writefln(Result:%d,c);}
Bill Baxter wrote:
On Fri, Nov 13, 2009 at 12:05 AM, Nick Sabalausky a...@a.a wrote:
Nick Sabalausky a...@a.a wrote in message
news:hdj3dk$1r5...@digitalmars.com...
AKA .stringof strikes again, or .attackof.stringof...
Ok, *now* I see all the reports of this on bugzilla, now that I searched
Travis Boucher wrote:
I've been playing with string mixins, and they are very powerful.
One thing I can't figure out is what exactly can and cannot be evaluated
at compile time.
For example:
char[] myFunc1() {
return int a = 1;;
}
char[] myFunc2() {
char[] myFunc3() {
Bill Baxter wrote:
On Tue, Nov 17, 2009 at 2:07 AM, Don nos...@nospam.com wrote:
Travis Boucher wrote:
I've been playing with string mixins, and they are very powerful.
One thing I can't figure out is what exactly can and cannot be evaluated
at compile time.
For example:
char[] myFunc1
Bill Baxter wrote:
On Tue, Nov 17, 2009 at 4:17 AM, Don nos...@nospam.com wrote:
Bill Baxter wrote:
On Tue, Nov 17, 2009 at 2:07 AM, Don nos...@nospam.com wrote:
Travis Boucher wrote:
I've been playing with string mixins, and they are very powerful.
One thing I can't figure out is what
bearophile wrote:
Bill Baxter:
The good thing is that since most of the machinery is there, the
actual compiler changes required would mostly be just rewrites of new
syntax in terms of existing functionality.
I agree, this looks like something that can be added to D even after D2 comes
out
bearophile wrote:
Don:
That's been requested many times. I posted a patch to Walter to do
exactly that. It was beautiful. It detected recursive template
expansions, and gave really nice error messages. Silently rejected.
Sigh.
If your patch is well done, works with LDC too, I see no reason
LMB wrote:
Hello,
This should be my first post here, but I just posted the same message on the
standard D newsgroup by mistake (what a noob! :-P) So, here I go again, on
the right forum this time...
I am trying to create yet another D2 wrapper for SQLite. As usual with many C libraries,
Peter C. Chapin wrote:
Lutger lutger.blijdest...@gmail.com wrote in
news:hescc2$16...@digitalmars.com:
You are not missing something, this is a known issue. It has been
discussed and I believe the intention was to do something about this,
but with all the high priorities I'm not sure when
Ellery Newcomer wrote:
On 12/01/2009 02:35 PM, Chad J wrote:
No guarantees, but a lot of promise.
http://erdani.com/d/thermopylae.pdf
On page 114 of the draft, 14 of the pdf, in section 4.1.10, at the
bottom: notice how Andrei seems to be hedging on properties working
correctly.
Oh goodie.
Lutger wrote:
i have two question related to ctfe:
1) returning .idup on local static arrays fail but I don't understand why
that should be:
string foo()
{
char[1] d;
d[0] = 'd';
return d.idup;
}
pragma(msg, foo()); // Error: cannot evaluate foo() at compile time
.idup is not
Zarathustra wrote:
I must to put a 'struct definition' inside a 'static if block' but other
'struct definition' doesn't see them.
static if(_WIN32IE ! 0x0400)
struct TVINSERTSTRUCT{
HTREEITEM hparent ;
HTREEITEM hinsertafter;
union tagDUMMYUNIONNAME{
TVITEMEX itemex;
TVITEM
Brian Eyster wrote:
I am running the compiler located in C:\dmd2\windows\bin\.
In the readme.txt file it gives the following info for the
compiler: dmd.exe D compiler
http://www.digitalmars.com/d/2.0/dmd-windows.html;
In the sc.ini file in the same directory is gives: [Version]
version=7.51
Phil Deets wrote:
On Thu, 24 Dec 2009 13:10:14 -0500, Phil Deets pjdee...@gmail.com wrote:
On Thu, 24 Dec 2009 12:49:42 -0500, Richard Webb
we...@beardmouse.org.uk wrote:
Sounds like you might be running into this:
http://d.puremagic.com/issues/show_bug.cgi?id=3342
Thanks for the link.
Steven Schveighoffer wrote:
On Mon, 28 Dec 2009 06:51:30 -0500, Don nos...@nospam.com wrote:
Stewart Gordon wrote:
Steven Schveighoffer wrote:
snip
Are you still working on this? :) I think this proves my point.
The compiler does not provide an easy way to compare floats bitwise,
so
Ali Çehreli wrote:
bearophile wrote:
Ali Çehreli:
auto s = S(1, 2);
Doesn't work for structs that have opCall (or maybe an opCall with
matching parameters to that use).
And by the way, that's the idiomatic way to initialize a struct in D.
Excellent! That's the way I have chosen and
Simen kjaeraas wrote:
Apart from C legacy, is there a reason to assume anything we don't know
what
is, is an int? Shouldn't the compiler instead say 'unknown type' or
something
else that makes sense?
There's now an Error type in the compiler. It's gradually filtering its
way through the
Phil Deets wrote:
On Mon, 28 Dec 2009 16:18:46 -0500, Simen kjaeraas
simen.kja...@gmail.com wrote:
Apart from C legacy, is there a reason to assume anything we don't
know what
is, is an int? Shouldn't the compiler instead say 'unknown type' or
something
else that makes sense?
C++
Steven Schveighoffer wrote:
On Mon, 28 Dec 2009 21:52:24 -0500, Don nos...@nospam.com wrote:
Steven Schveighoffer wrote:
Whether you like it or not, the runtime must initialize it to
something, even if the value means uninitialized.
The key question is: is it valid to read an uninitialized
BCS wrote:
Hello Ary,
Don wrote:
Phil Deets wrote:
On Mon, 28 Dec 2009 16:18:46 -0500, Simen kjaeraas
simen.kja...@gmail.com wrote:
Apart from C legacy, is there a reason to assume anything we don't
know what
is, is an int? Shouldn't the compiler instead say 'unknown type' or
something
Tomek Sowiñski wrote:
Don Wrote:
There's now an Error type in the compiler. It's gradually filtering its
way through the compiler.
The one from object.di or the compiler makes up its own dummy type to say something
wrong?
It's just an internal compiler thing, which does nothing except
Steven Schveighoffer wrote:
On Mon, 04 Jan 2010 05:52:19 -0500, bearophile
bearophileh...@lycos.com wrote:
If I compile the following code with DMD with and without the scope
annotation I can see that both versions compile and the version with
scope deletes the object. Is the compiler acting
Steven Schveighoffer wrote:
On Mon, 04 Jan 2010 14:33:24 -0500, Don nos...@nospam.com wrote:
Steven Schveighoffer wrote:
On Mon, 04 Jan 2010 05:52:19 -0500, bearophile
bearophileh...@lycos.com wrote:
If I compile the following code with DMD with and without the scope
annotation I can see
aarti_pl wrote:
class Test {
string t1 = test;//Ok!
char[] t2 = test.dup;//Compile error
}
void main(char[][] args) {
}
Error:
hello.d(3): Error: cannot evaluate _adDupT((
D12TypeInfo_Aya6__initZ),test) at compile time
hello.d(3): Error: cannot evaluate _adDupT((
aarti_pl wrote:
W dniu 2010-01-17 19:38, Don pisze:
aarti_pl wrote:
class Test {
string t1 = test; //Ok!
char[] t2 = test.dup; //Compile error
}
void main(char[][] args) {
}
Error:
hello.d(3): Error: cannot evaluate _adDupT((
D12TypeInfo_Aya6__initZ),test) at compile time
hello.d(3): Error
strtr wrote:
dmd(1.048/55/56) crashed on me:
AppName: dmd.exe AppVer: 0.0.0.0 ModName: unknown
ModVer: 0.0.0.0 Offset: 0002
There is a lot of crash data but I do not know where to start looking.
I've also tried finding which part of the code is responsible, but I haven't
1 - 100 of 223 matches
Mail list logo