On 06/05/10 00:11, bearophile wrote:
Robert Clipsham:
.ptr is only available for arrays.
And arr.ptr returns the pointer to the start of the memory that
contains the array data. Whilearr is the pointer to the struct that
contains the pointer and the length.
Thanks for adding this, I
On 09/05/10 02:27, eles wrote:
Hello,
I just installed dmd 2.045 (unarchived in c:\dmd2) and put c:
\dmd2\windows2\bin on path.
Compiling the following:
import std.complex;
int main(){
return 0;
}
fails with:
C:\dmd2dmd test.d
OPTLINK (R) for Win32 Release 8.00.2
Copyright (C)
On 10/05/10 19:48, Piotrek wrote:
(gdb) info locals
i = 1
s = 578159222890430469
f = 9.55146781e-38
(gdb) show language
The current source language is auto; currently d.
You are not using a version of gdb with D support if s is not displayed
as a string. This said, I've only ever looked at
On 15/05/10 00:14, eles wrote:
hello,
since gnu debugger (gdb) is free and now there is a version which works
properly with D, could someone host (and made available for download)
*compiled* versions for windows and linux? of course, patched versions
(so that it would work with D). maybe on
On 15/05/10 00:14, Pillsy wrote:
I have the following program on Mac OS X 10.6.3 running dmd version 2.043:
$ cat if.d
import std.stdio;
void main (string [] args)
{
foreach(arg; args)
writeln(arg);
auto vec = new double[10];
foreach(i, ref x; vec) { x = cast(double) i; }
On 16/05/10 21:43, bearophile wrote:
Do you know if it's possible to replace typeof(f1) with f1.typeof in D (for
symmetry with sizeof too)?
import std.stdio: writeln;
struct Foo {
int x;
}
void main() {
Foo f1;
int fsize = f1.sizeof; // OK
alias typeof(f1) T1; // OK
On 19/05/10 20:45, eles wrote:
as you see, the debug session was unsuccesful. can anybody enlighten me why?
what is the line warning: the debug information found in /lib/ld-2.11.1.so
does not match /lib/ld-linux.so.2 (CRC mismatch).?
thank you
eles
You'd need to talk to the gdb devs about
On 22/05/10 18:46, strtr wrote:
I wanted to overload toString for my enums.
test.d(189): Error: toString (ENUM) does not match parameter types (int)
not possible?
enum ENUM
{
a, b, c
}
void toString(ENUM) { }
It works here. Could you show an example of some code that isn't
On 30/05/10 19:46, dave wrote:
Hi,
sort of new to D programming, coming from C++. Basically the question is if
there is some sort of a way to dynamically cast a variable in D much like you
do in C++?
ex:
interface A {...}
class B {...}
class C : B {...}
class D : B, A {...}
function(B
On 06/06/10 13:40, new to d wrote:
After reading on this newsgroup about the use of D with cgi i've
tried it on my host. Even a simple hello world program gives me
internal server error while equivalent c program compiled with gcc
works fine. Does any one here have any idea what the problem
On 08/06/10 11:23, Patrick Byrne wrote:
Amazon (UK) tells me that publication of this book is delayed. Is it
still coming soon, please?
--
Patrick Byrne
I ordered it from amazon.com, it was half the priceof the UK version ;)
I've had no delay message about it for a while now, the last one I
On 08/06/10 13:12, Lars T. Kyllingstad wrote:
I don't know when you ordered it, but that has changed now, at least. At
amazon.co.uk it costs £18.50, while at amazon.com it sells for $42.70 --
roughly £29. Also, for Europeans, the delivery cost is lower if you
order from UK.
-Lars
I ordered
On 08/06/10 22:25, Larry Luther wrote:
Q: Is this the way it's supposed to be?
Yes, byte implicitly casts to ubyte so it's accepted. Try switching the
templates round, they will both be byte. The way around this is to add
template constraints to the templates:
void get(T:ubyte)(T[] buffer)
On 22/06/10 23:15, bioinfornatics wrote:
hello,
I develop in many language such C/C++ Java etc.. and i want try with D
in c++ for example i use boost::program_option for parse command line. I search
the same thing for D language.
thanks
If you're using D1/tango you can use
On 27/11/10 22:04, Bob Cowdery wrote:
I've just started to get organised to port my project from Windows to
Ubuntu. I see there is now a DMD for Linux which I have installed. My
question is can anyone tell me what I need to build the C libraries in
to be compatible. On Windows I had to use DMC
101 - 115 of 115 matches
Mail list logo