On Sunday, 28 September 2014 at 04:38:56 UTC, JKPdouble wrote:
On Sunday, 28 September 2014 at 04:24:25 UTC, Joel wrote:
I'm trying to make a multidimensional array. I feel I've tried
every thing. Is there a good guide explaining it?
struct Spot { bool dot; }
spots = new Spot[][](800,600);
I'm trying to make a multidimensional array. I feel I've tried
every thing. Is there a good guide explaining it?
struct Spot { bool dot; }
spots = new Spot[][](800,600);
assert(spots[800-1][600-1].dot, "Out of bounds");
On Sunday, 28 September 2014 at 04:24:25 UTC, Joel wrote:
I'm trying to make a multidimensional array. I feel I've tried
every thing. Is there a good guide explaining it?
struct Spot { bool dot; }
spots = new Spot[][](800,600);
assert(spots[800-1][600-1].dot, "Out of bounds");
dot is
On 9/27/14 5:48 AM, "Marc =?UTF-8?B?U2Now7x0eiI=?= "
Yes, that's what I originally intended. Just forgot the const, and
didn't even notice it after I reread it :-P
I wondered... ;)
-Steve
I'm trying to figure out how to add raw bytes the packed stream
in msgpack-d. My current try is
import std.stdio;
import std.conv: to;
import std.container: Array;
import msgpack;
static void stringArrayPackHandler(E)(ref Packer p,
ref Array!E x)
{
// p
On Friday, 26 September 2014 at 18:18:45 UTC, Steven
Schveighoffer wrote:
On 9/26/14 1:36 PM, "Marc =?UTF-8?B?U2Now7x0eiI=?=
" wrote:
Alternatively, you could create a union with a private and a
public
member with the same types, but I wouldn't recommend it.
Besides, the
members would need t
On Saturday, 27 September 2014 at 11:40:19 UTC, Rikki Cattermole
wrote:
These definitions can't work since Function and Atom need each
other in
this recursive definition.
How to get out of this trap?
Do I have to drop Algebraic and go back to manual tagged
unions?
Converting Function to a
On Saturday, 27 September 2014 at 15:45:20 UTC, Meta wrote:
Also, you might want to use This* instead of This[], unless you
want an Atom to be able to contain a whole array of other atoms.
That's indeed what I want.
On Saturday, 27 September 2014 at 14:08:18 UTC, H. S. Teoh via
Digitalmars->
What about using Atom*[] instead of Atom[]?
Atom[] seems simpler to me.
On Saturday, 27 September 2014 at 11:26:33 UTC, ponce wrote:
I'm dabbling with Scheme interpreter and ultimately I would
need to declare the following types.
--
struct Function
{
Environment env;
Atom params;
Atom body_;
}
// An atom is either a string, a double, a sym
I've seen a few old threads mentioning this, but couldn't find
anything more recent. What support is there for debugging on OSX?
I'm currently trying MonoD, but the option to run with debugger
is greyed out.
On Sat, Sep 27, 2014 at 11:26:31AM +, ponce via Digitalmars-d-learn wrote:
> I'm dabbling with Scheme interpreter and ultimately I would need to
> declare the following types.
>
> --
>
> struct Function
> {
> Environment env;
> Atom params;
> Atom body_;
> }
>
> // An
On 27/09/2014 12:59, Nick Treleaven wrote:
# in dmd/test
$ make DMD=../src/dmd.exe QUIET=''
Building d_do_test tool
OS: win32
../src/dmd.exe -m32 -unittest -run d_do_test.d -unittest
/usr/bin/link: missing operand after `d_do_test,,nul,user32+kernel32/noi;'
Try `/usr/bin/link --help' for more inf
Hi,
I used to run the ddoc tests with no problem, but for the last month or
so I ran into problems building the d_do_test tool from latest Git dmd.
(As I didn't need the latest dmd at the time, I just used an older one
for a while).
Maybe I'm doing something wrong with my build setup for
dmd
On Saturday, 27 September 2014 at 11:40:19 UTC, Rikki Cattermole
wrote:
How to get out of this trap?
Do I have to drop Algebraic and go back to manual tagged
unions?
Converting Function to a class. No where near ideal. But it'll
work.
It does work! Thanks.
Actually it's quite appropriate to
On 27/09/2014 11:26 p.m., ponce wrote:
I'm dabbling with Scheme interpreter and ultimately I would need to
declare the following types.
--
struct Function
{
Environment env;
Atom params;
Atom body_;
}
// An atom is either a string, a double, a symbol, a function or a
I'm dabbling with Scheme interpreter and ultimately I would need
to declare the following types.
--
struct Function
{
Environment env;
Atom params;
Atom body_;
}
// An atom is either a string, a double, a symbol, a function or
a list of atoms
alias Atom = Algebraic!(s
On Friday, 26 September 2014 at 18:18:45 UTC, Steven
Schveighoffer wrote:
On 9/26/14 1:36 PM, "Marc =?UTF-8?B?U2Now7x0eiI=?=
" wrote:
Alternatively, you could create a union with a private and a
public
member with the same types, but I wouldn't recommend it.
Besides, the
members would need t
On Saturday, 27 September 2014 at 09:19:57 UTC, Jacob Carlborg
wrote:
On 2014-09-26 21:52, John Colvin wrote:
Yes, but it depends on the complexity of the headers. C++
templates
aren't supported for example.
Templates are supported, if they're already instantiated.
Sorry, yes, I should hav
On 2014-09-26 21:52, John Colvin wrote:
Yes, but it depends on the complexity of the headers. C++ templates
aren't supported for example.
Templates are supported, if they're already instantiated.
--
/Jacob Carlborg
20 matches
Mail list logo