Hi. I started my first program in D (I have a little experience
in c).
I wanted to create an array of pointers for creating a node with
multiple
connections. In C you can make one directly (node *nedePtr[]).
What is the equivalent for the D's syntax??
Regards
Arjan
On Thursday, 16 January 2014 at 09:00:18 UTC, Namespace wrote:
On Thursday, 16 January 2014 at 08:55:43 UTC, Arjan Fetahu
wrote:
Hi. I started my first program in D (I have a little
experience in c).
I wanted to create an array of pointers for creating a node
with multiple
connections. In C
On Thursday, 16 January 2014 at 09:03:00 UTC, Arjan Fetahu wrote:
On Thursday, 16 January 2014 at 09:00:18 UTC, Namespace wrote:
On Thursday, 16 January 2014 at 08:55:43 UTC, Arjan Fetahu
wrote:
Hi. I started my first program in D (I have a little
experience in c).
I wanted to create an array
On Thursday, 16 January 2014 at 09:47:21 UTC, Rene Zwanenburg
wrote:
On Thursday, 16 January 2014 at 09:03:00 UTC, Arjan Fetahu
wrote:
On Thursday, 16 January 2014 at 09:00:18 UTC, Namespace wrote:
On Thursday, 16 January 2014 at 08:55:43 UTC, Arjan Fetahu
wrote:
Hi. I started my first program
qznc:
This sounds somewhat paradox to me. How can a new feature have
a regression? A regression means it has worked before, but
new feature did not exist before.
Regressions on older betas; or to see if using the new features
breaks other apparently unrelated parts of old code.
In
On Wednesday, 15 January 2014 at 22:21:18 UTC, Nick Sabalausky
wrote:
\Program Files (x86)\Windows Kits\ doesn't exist :(
As I suspected, it must not have installed correctly.
Nick, did you notice my reply from 4 days ago?
http://forum.dlang.org/post/lumcuftlvokawuneq...@forum.dlang.org
I
On Friday, 10 January 2014 at 20:32:53 UTC, Brad Anderson wrote:
Hmm, that's strange, %WindowsSdkDir% isn't set. I thought
vcvarsall.bat was supposed to set up all of that.
Appears to be a common problem with VC2008:
Probably because you use ansi api: if filename contains
non-english character, there could be a problem.
A filesystem support is primarily for storing files, attributes
can be safely ignored.
On Thu, 16 Jan 2014 15:41:06 +, Kagamin wrote:
Probably because you use ansi api: if filename contains non-english
character, there could be a problem.
A filesystem support is primarily for storing files, attributes can
be safely ignored.
Hmm... that may be true for Linux filesystems, but
Sorry, that's
--- pack/package.d
and
--- pack/sub.d
I'm having problems setting up my programming environment on Windows and
would really appreciate some assistance. Following instructions for
Windows at [1], everything builds fine, however I cannot build with DMD
afterwards because of linker errors.
The first such error said that the file
On Thursday, 16 January 2014 at 17:41:02 UTC, Andrew Edwards
wrote:
I'm having problems setting up my programming environment on
Windows and would really appreciate some assistance. Following
instructions for Windows at [1], everything builds fine,
however I cannot build with DMD afterwards
On 1/16/14, 1:10 PM, evilrat wrote:
On Thursday, 16 January 2014 at 17:41:02 UTC, Andrew Edwards wrote:
I am using Windows 7 Home Premium.
[1] http://wiki.dlang.org/Building_DMD
is this x64? probably windows .lib's not linked such as kernel32 and
others...
Yes. Win7x64
On 1/16/14, 2:03 PM, Dmitry Olshansky wrote:
16-Jan-2014 21:41, Andrew Edwards пишет:
it would help to know when exactly this problem comes up. I guess
bulding Phobos?
dmd, druntime, and phobos all build properly. The problem comes up when
trying to build with dmd.
It could also mean
I have read some posts about new std.signal implementation. The
last was this review thread:
http://forum.dlang.org/thread/ujlhznaphepibgtpc...@forum.dlang.org.
What I still can't understand what is difference between signals
and events in languages like JavaScript, C# and Borland C++ (that
On Thu, Jan 16, 2014 at 10:47 AM, Rene Zwanenburg
renezwanenb...@gmail.com wrote:
Keep in mind that, unlike in c++, D classes are reference types:
class Node
{
Node[] nodes; // This is valid
}
Structs are value types though, so using a struct in the above example is
illegal.
That's
What i would like to achieve is to dynamically assign and
retrieve properties without declaring them first. For example:
class T
{
public this()
{
this.foo = bar;
}
}
Ordinarily the above won't compile because 'foo' hasn't been
declared but with opDispatch i can handle
Gary Willoughby:
What i would like to achieve is to dynamically assign and
retrieve properties without declaring them first.
Do you mean something like this?
http://rosettacode.org/wiki/Add_a_variable_to_a_class_instance_at_runtime#D
Bye,
bearophile
17-Jan-2014 00:52, Steven Schveighoffer пишет:
writeln(splitter(abc123def456, regex([0-9]+, g)));
outputs:
[abc, def, ]
But what if I want the 123 and 456 tokens too? Is there a way to do
that?
Well these 3 pieces are _slices_ of the original input, and with a bit
of calculations on .ptr
Gary Willoughby:
Yes exactly but i would like to preserve the types of
differently typed properties so i can cast them back on
retrieval.
A Variant needs to keep the type of the value you have stored in,
look at the Variant documentation. (But the usual limitations of
a ahead-of-time
Why do I get the error message:
Error: immutable method fbool.fbool.and is not callable using a
mutable object
when chaining methods? It works fine using regular function calls?
struct fbool {
ubyte data;
pure immutable fbool and(immutable fbool b){return b.data
data ? b : this;}
On Friday, 17 January 2014 at 01:49:24 UTC, Ola Fosheim Grøstad
wrote:
pure immutable fbool and(immutable fbool b){return b.data
Nevermind, I figured this out. immutable(fbool), not immutable
fbool...
On Thursday, 16 January 2014 at 19:54:45 UTC, Ross Hays wrote:
I was reading about Rust and one thing that caught my attention
as interesting was the inclusion of std::prelude in the
beginning of every package. I was curious what the advantage of
this were versus having things declared in
Does it fail for that one directory only or for any directory?
Initially druntime was a part of phobos, and tango was an
alternative implementation of standard library, and you couldn't
use phobos and tango in one application, that's why druntime was
extracted as common base library for tango and phobos.
On 2014-01-16 23:31, bearophile wrote:
A Variant needs to keep the type of the value you have stored in, look
at the Variant documentation. (But the usual limitations of a
ahead-of-time compiled statically typed language apply.)
A Varian won't work, since it only stores a TypeInfo, not the
26 matches
Mail list logo