At first, thank you.
There is an issue with Diet templates highlighting. It's very
poor.
Just compare
Mono-D 2.0.1/Xamarian Studio 5.0 - http://a-rei.ru/eNhp
Sublime Text 3 - http://a-rei.ru/vuoY
On Saturday, 3 May 2014 at 08:12:50 UTC, Jack Applegame wrote:
At first, thank you.
There is an issue with Diet templates highlighting. It's very
poor.
Just compare
Mono-D 2.0.1/Xamarian Studio 5.0 - http://a-rei.ru/eNhp
Sublime Text 3 - http://a-rei.ru/vuoY
Hmm, normally, this stuff
On Saturday, 3 May 2014 at 11:28:25 UTC, Alexander Bothe wrote:
But thanks for noticing that regression.
No, it actually is working. Your file has to end with '.dt' to
have proper highlighting. A screenshot I just took:
http://i.imgur.com/KaWAKgW.png
On Saturday, 3 May 2014 at 11:37:58 UTC, Alexander Bothe wrote:
On Saturday, 3 May 2014 at 11:28:25 UTC, Alexander Bothe wrote:
But thanks for noticing that regression.
No, it actually is working. Your file has to end with '.dt' to
have proper highlighting. A screenshot I just took:
On Saturday, 3 May 2014 at 13:21:24 UTC, Jack Applegame wrote:
Strange. What is wrong?
editor - http://a-rei.ru/meJf
about - http://a-rei.ru/RAuW
add-in manager - http://a-rei.ru/jIrf
Nothing is wrong with that - except that in the current release,
the inline-D syntax highlighting only
On Wednesday, 30 April 2014 at 20:15:37 UTC, Alexander Bothe
wrote:
Hi everyone,
there's a new XamarinStudio version upcoming. And just as
usual, I've just downloaded the bleeding-edge release candidate
and made Mono-D run on it :P
For the next couple of days, you'll only be able to get
Version v0.4.3 now. New:
. Tests can be run in random (single-threaded) order. A seed can
be specified.
. unittest blocks are registered at compile-time. This mean each
block/function
is its own test case. Before all blocks from a module were a test
case.
Atila
On Wednesday, 23 April 2014
On Saturday, 3 May 2014 at 17:09:41 UTC, Paolo Invernizzi wrote:
I'm not seeing any more the icons in the document outline pad:
is
it expected?
must be a regression as well. Gonna check it.
On Saturday, 3 May 2014 at 17:09:41 UTC, Paolo Invernizzi wrote:
I'm not seeing any more the icons in the document outline pad:
is
it expected?
Fixed it in v2.0.2
On Saturday, 3 May 2014 at 18:55:44 UTC, Alexander Bothe wrote:
On Saturday, 3 May 2014 at 17:09:41 UTC, Paolo Invernizzi wrote:
I'm not seeing any more the icons in the document outline pad:
is
it expected?
Fixed it in v2.0.2
Thank you!
/Paolo
On Friday, 2 May 2014 at 15:03:47 UTC, Andrei Alexandrescu wrote:
On 5/2/14, 1:34 AM, Paolo Invernizzi wrote:
On Thursday, 1 May 2014 at 21:29:19 UTC, Andrei Alexandrescu
wrote:
On 5/1/14, 1:19 PM, H. S. Teoh via Digitalmars-d wrote:
On Thu, May 01, 2014 at 01:03:06PM -0700, Andrei
Jonathan M Davis:
Idan Arye:
We are all sick and tired of this debate, but today I've seen a
question in Stack Exchange's Programmers board that raises a
point I don't recall being discussed here:
Yeah, I brought this up before, and it's one of the reasons why
I'm against non-nullable by
Am 30.04.2014 22:21, schrieb Andrei Alexandrescu:
Walter and I have had a long chat in which we figured our current
offering of abstractions could be improved. Here are some thoughts.
There's a lot of work ahead of us on that and I wanted to make sure
we're getting full community buy-in and
feels like writing C++ with C# syntax.
Ahem. C++ has RAII k thanks. C++ C# Proof.
I would allow this bug. This also happens with 'final' member in
Java, and there you expect the value to not be null. A rule of
thumb should be to never call virtual methods from inside of a
constructor. Bad things happen.
On Friday, 2 May 2014 at 00:45:42 UTC, Andrei Alexandrescu wrote:
Here's where the point derails. A struct may be preexisting;
the decision to define a destructor for it and the decision to
use polymorphism for an object that needs that structure are
most of the time distinct.
Andrei
I
Am 01.05.2014 19:35, schrieb Marc Schütz schue...@gmx.net:
But conceptually, this is _not_ the same as classes! As others have
mentioned, it's possible to created structs with `new`, or have them in
dynamic arrays, as well as managing class objects manually.
Maybe the language should have some
Is there any progress on the graphics API Adam Wilson is working
on?
On Friday, 2 May 2014 at 20:59:46 UTC, monarch_dodra wrote:
Yeah, you have to read the fine print: collection implies
destruction *but* no guarantees the collection will actually
ever happen.
Which make destructors dangerous constructs. It means you now
risk getting random bugs-reports after
Hello everyone. From time to time, people ask in the newsgroup
and also IRC about Qt bindings for D, so I thought it would be a
good idea to give people an update on where my own bindings
stand. First, if you want to take a look at my code as it stands,
you can get it here.
On 2014-05-01 17:35:36 +, Marc Schütz schue...@gmx.net said:
Maybe the language should have some way to distinguish between
GC-managed and manually-managed objects, preferably in the type system.
Then it could be statically checked whether an object is supposed to be
GC-managed, and
Am 03.05.2014 10:57, schrieb froglegs:
feels like writing C++ with C# syntax.
Ahem. C++ has RAII k thanks. C++ C# Proof.
Which does not work across threads, relies on stack allocations and has
issues if cleaning a resource implies having a not handled exception on
the destructor of
So I tried using unit-threaded to run Phobos unit tests again and
had problems (which I'll look into later) with its compile-time
reflection. Then I realised I was an idiot since I don't need to
reflect on anything: all Phobos tests are in unittest blocks so
all I need to do is include them in
I turned off all output to check. It was still slower with
multiple threads. That was the only weird thing I was doing I
could think of as the cause. Otherwise it's just a foreach(test;
tests.parallel) { test(); }.
Atila
On Saturday, 3 May 2014 at 11:54:55 UTC, Atila Neves wrote:
So I tried
Out of curiosity are you on Windows?
No, Arch Linux 64-bit. I also just noticed a glaring threading
bug in my code as well that somehow's never turned up. This is
not a good day.
Atila
On Saturday, 3 May 2014 at 12:08:56 UTC, Atila Neves wrote:
I turned off all output to check. It was still slower with
multiple threads. That was the only weird thing I was doing I
could think of as the cause. Otherwise it's just a
foreach(test; tests.parallel) { test(); }.
Atila
On
On Saturday, 3 May 2014 at 12:24:59 UTC, Atila Neves wrote:
Out of curiosity are you on Windows?
No, Arch Linux 64-bit. I also just noticed a glaring threading
bug in my code as well that somehow's never turned up. This is
not a good day.
Atila
I'm surprised. Threads should be cheap on
I've been reading all the topics with those radical ideas about
the GC and dtors and, honestly, i'd rather call them insane.
After all the reading and thinking, i came to conclusion, that
what Andrey suggests is to call dtors only on stack-allocated
structs. That also implies, that one can't
On Saturday, 3 May 2014 at 12:28:03 UTC, monnoroch wrote:
I've been reading all the topics with those radical ideas
about the GC and dtors and, honestly, i'd rather call them
insane. After all the reading and thinking, i came to
conclusion, that what Andrey suggests is to call dtors only on
Hey I have this global variable, if I assign a value to it and
later null it, it'll call its destructor if its not referenced
anywhere else.
Which in turn would make me think ref counting would be a good
idea.
It seems, that ARC is the only way. There were idea to make all
non-scoped (in
Scoped-objects + ARC on non-scoped objects with dtors + GC on
non-scoped objects w/o dtors would arguably solve the problem,
especially, is arrays of scoped objects would be considered also
scoped, or just add separate scoped arrays.
Hi,
the slides are now available, with lots of interesting talks about
code generation, which are a domain of systems programming targeted by D.
http://cgo.org/cgo2014/conference/program/
--
Paulo
On Sat, 03 May 2014 11:00:37 +
w0rp via Digitalmars-d digitalmars-d@puremagic.com wrote:
So, I am eager to hear what people think about all of this. Does
anyone like the work that I have done, and will it be useful?
Have I committed some terrible crime against nature, for which I
must be
Am 03.05.2014 14:28, schrieb monnoroch:
I've been reading all the topics with those radical ideas about the GC
and dtors and, honestly, i'd rather call them insane. After all the
reading and thinking, i came to conclusion, that what Andrey suggests is
to call dtors only on stack-allocated
On Saturday, 3 May 2014 at 13:21:04 UTC, Paulo Pinto wrote:
C# and Java also have scoped blocks (using,
try-with-resources), similar to Python for resource management.
Yeah, but it doesn't work for graphs that maintain resources,
such as a scene graph which hold onto texture memory.
Am 03.05.2014 16:02, schrieb Ola Fosheim Grøstad
ola.fosheim.grostad+dl...@gmail.com:
On Saturday, 3 May 2014 at 13:21:04 UTC, Paulo Pinto wrote:
C# and Java also have scoped blocks (using, try-with-resources),
similar to Python for resource management.
Yeah, but it doesn't work for graphs
On Saturday, 3 May 2014 at 14:31:59 UTC, Paulo Pinto wrote:
- Make all scene graph nodes IDisposable.
- Have a using(rootNode) {} on your render loop
That would work for a static scene.
But you want to mark resources ready for release when nodes are
removed from the graph dynamically. In
Am 03.05.2014 16:43, schrieb Ola Fosheim Grøstad
ola.fosheim.grostad+dl...@gmail.com:
On Saturday, 3 May 2014 at 14:31:59 UTC, Paulo Pinto wrote:
- Make all scene graph nodes IDisposable.
- Have a using(rootNode) {} on your render loop
That would work for a static scene.
But you want to
On Saturday, 3 May 2014 at 15:10:43 UTC, Paulo Pinto wrote:
Easy, you already know that you don't need the node, just call
the dispose method, instead of marking for release.
But you don't know unless you use RC or GC. Let's say you make a
jungle. Lots of pointers to the tree root node. And
On Sat, 2014-05-03 at 11:00 +, w0rp via Digitalmars-d wrote:
[…]
2. I have not yet implemented signals and slots. Two options for
this involve generating QMetaObject instances for classes,
possibly via template mixins, which do what 'moc' does for C++. A
second option is to use Qt5 for
Ok, so I went and added __traits(getUnitTests) to unit-threaded.
That way each unittest block is its own test case. I registered
these modules in std to run:
array, ascii, base64, bigint, bitmanip, concurrency, container,
cstream.
On the good news front, they all passed even though they
Am 03.05.2014 17:20, schrieb Ola Fosheim Grøstad
ola.fosheim.grostad+dl...@gmail.com:
On Saturday, 3 May 2014 at 15:10:43 UTC, Paulo Pinto wrote:
Easy, you already know that you don't need the node, just call the
dispose method, instead of marking for release.
But you don't know unless you
I can reproduce the slower-with-threads issue without using my
library. I've included the source file below and would like to
know if other people see the same thing.
The Phobos modules are all called ustd because I
couldn't/didn't know how to get this to work otherwise. So I
copied the
On 5/3/14, 1:49 AM, Benjamin Thaut wrote:
2) Quit D. (which is becomeing more and more an option when reading the
recent news group discussions.)
The entire idea of starting these discussions is to gather a sense of
shared vision with the community on the best direction to follow.
I'm
On 5/3/14, 4:54 AM, Atila Neves wrote:
So I tried using unit-threaded to run Phobos unit tests
[snip]
Thanks. Are you using thread pooling (a limited number of threads e.g.
1.5 * cores running all unittests)? -- Andrei
On 5/3/2014 5:26 AM, Rikki Cattermole wrote:
Something funky is definitely going on I bet.
No doubt: http://www.youtube.com/watch?v=aZcbDESaxhY
On 5/3/2014 10:22 AM, Atila Neves wrote:
I can reproduce the slower-with-threads issue without using my library. I've
included the source file below and would like to know if other people see the
same thing.
I haven't investigated this, but my suspicions are:
1. thread creation/destruction is
On 5/3/14, 5:39 AM, monnoroch wrote:
Hey I have this global variable, if I assign a value to it and later
null it, it'll call its destructor if its not referenced anywhere else.
Which in turn would make me think ref counting would be a good idea.
It seems, that ARC is the only way. There
On Saturday, 3 May 2014 at 18:27:46 UTC, Andrei Alexandrescu
wrote:
On 5/3/14, 5:39 AM, monnoroch wrote:
Hey I have this global variable, if I assign a value to it
and later
null it, it'll call its destructor if its not referenced
anywhere else.
Which in turn would make me think ref counting
On Sat, May 03, 2014 at 11:12:36AM -0700, Andrei Alexandrescu via Digitalmars-d
wrote:
[...]
Anyhow, just to clarify, it seems like eliminating destructor calls
during GC is not a viable option. I'll define std.allocator to allow
users to define such a GC if they so want, without prescribing
On 4/30/2014 1:36 PM, Andrei Alexandrescu wrote:
One good example is networking tests - if I worked on an airplane I'd love to
not test tests that need connectivity with a simple regex.
I am suspicious that testing networks with a unit test is an inappropriate use
of unit tests.
Unit tests
On Saturday, 3 May 2014 at 18:26:37 UTC, Walter Bright wrote:
On 5/3/2014 10:22 AM, Atila Neves wrote:
I can reproduce the slower-with-threads issue without using my
library. I've
included the source file below and would like to know if other
people see the
same thing.
I haven't
On Saturday, 3 May 2014 at 18:16:52 UTC, Andrei Alexandrescu
wrote:
On 5/3/14, 4:54 AM, Atila Neves wrote:
So I tried using unit-threaded to run Phobos unit tests
[snip]
Thanks. Are you using thread pooling (a limited number of
threads e.g. 1.5 * cores running all unittests)? -- Andrei
I'm
On 5/1/2014 7:59 AM, Andrei Alexandrescu wrote:
If a class has at least one member with a
destructor, the compiler might need to generate a destructor for the class.
And in fact that's what dmd does.
On Sat, 03 May 2014 02:56:37 -0700, Nordlöw per.nord...@gmail.com wrote:
Is there any progress on the graphics API Adam Wilson is working on?
Yes. There has been progress. I am currently finishing up the DirectX 11
bindings. For now it will include everything but 3D. I am focusing on
On Thursday, 1 May 2014 at 10:50:12 UTC, John Colvin wrote:
On Wednesday, 30 April 2014 at 19:25:40 UTC, Dicebot wrote:
On Wednesday, 30 April 2014 at 19:08:15 UTC, Jacob Carlborg
wrote:
On 2014-04-30 11:43, Dicebot wrote:
This is common complaint I still fail to understand. I have
never
On Thursday, 1 May 2014 at 09:58:32 UTC, Jacob Carlborg wrote:
On 2014-04-30 22:11, Russel Winder via Digitalmars-d wrote:
This cannot be a good idea. If the block says unittest then it
contains
unit tests, not integration tests or system tests, just unit
tests.
Then we need to come up with
03-May-2014 21:22, Atila Neves пишет:
I can reproduce the slower-with-threads issue without using my library.
I've included the source file below and would like to know if other
people see the same thing.
The Phobos modules are all called ustd because I couldn't/didn't know
how to get this to
Interesting, we haven't explored that. The most problematic
implication would be that classes with destructors will form a
hierarchy separate from Object.
As i understood, you want to remove dtors for non-scoped objects
completely, so all classes will be without it, except user
defined ones.
The most problematic implication would be that classes with
destructors will form a hierarchy separate from Object.
What for? As i understand object's dtor does nothing, so for any
class we can determine, if dtor is empty. I don't see a problem
here.
Cycles and locks for RC are the biggest
if(single) {
foreach(test; tests) {
test();
}
} else {
foreach(test; tests.parallel) {
Try different batch size:
test.parallel(1), test.parallel(2) etc.
So as to not have thread creation be disproportionately
represented, I repeated the module list
gdc gave _very_ different results. I had to use different modules
because at some point tests started failing, but with gdc the
threaded version runs ~3x faster.
On my own unit-threaded benchmarks, running the UTs for Cerealed
over and over again was only slightly slower with threads than
On 2014-05-03 18:27:47 +, Andrei Alexandrescu
seewebsiteforem...@erdani.org said:
Interesting, we haven't explored that. The most problematic implication
would be that classes with destructors will form a hierarchy separate
from Object.
Seems like people have been ignoring my two posts
Same thing with unit_threaded on Phobos, 3x faster even without
repeating the modules (0.1s vs 0.3s). Since the example is
shorter than the other one, I'll post it here in case anyone else
wants to try:
import unit_threaded.runner;
int main(string[] args) {
return args.runTests!(
You can follow all progress on GitHub here:
https://github.com/auroragraphics/
Ok. Now I know :)
Thx.
On 5/3/14, 12:40 PM, Walter Bright wrote:
On 5/1/2014 7:59 AM, Andrei Alexandrescu wrote:
If a class has at least one member with a
destructor, the compiler might need to generate a destructor for the
class.
And in fact that's what dmd does.
Which suggests a simple solution for calling
On 5/3/14, 2:42 PM, Atila Neves wrote:
gdc gave _very_ different results. I had to use different modules
because at some point tests started failing, but with gdc the threaded
version runs ~3x faster.
On my own unit-threaded benchmarks, running the UTs for Cerealed over
and over again was only
On Saturday, 3 May 2014 at 19:45:38 UTC, Adam Wilson wrote:
Yes. There has been progress. I am currently finishing up the
DirectX 11 bindings. For now it will include everything but 3D.
I am focusing on Windows 2D for the moment because that is the
environment I am most familiar with.
Just a
On Friday, 2 May 2014 at 17:15:20 UTC, Orvid King via
Digitalmars-d wrote:
Well, in a 64-bit address space, the false pointer issue is
almost
mute, the issue comes in when you try to apply this design to
32-bit,
where the false pointer issue is more prevelent. Is the volume
of
memory saved by
I'm intersting for DQt is better than QML.
I think Get experience from QML to create a D binding to Qt,
that is better than binding to QML. the Go's The programming
thinking is not same to the C++,and D.
DQt is Working hard more, but has significant effect for D.
DQt is very clear.
On 5/3/2014 3:32 PM, Walter Bright wrote:
On 4/30/2014 1:36 PM, Andrei Alexandrescu wrote:
One good example is networking tests - if I worked on an airplane I'd
love to
not test tests that need connectivity with a simple regex.
I am suspicious that testing networks with a unit test is an
In std.random, is the isUniformRNG intended to determine whether the
given type is *some* RNG or just a *specific* form of RNG? Because I
don't see any isRNG that's more general.
More importantly, should a crypto RNG count as isUniformRNG?
On 5/3/2014 6:57 PM, Nick Sabalausky wrote:
I'm not sure mock networks can really be used for testing a client-only lib of
some specific protocol. There may also be other examples.
There's also the question of whether or not D's unittest {...} should *expect*
to be limited to tests that are
On 5/3/2014 6:44 PM, Andrei Alexandrescu wrote:
On 5/3/14, 12:40 PM, Walter Bright wrote:
On 5/1/2014 7:59 AM, Andrei Alexandrescu wrote:
If a class has at least one member with a
destructor, the compiler might need to generate a destructor for the
class.
And in fact that's what dmd does.
On Sat, 03 May 2014 22:44:39 -0400
Nick Sabalausky via Digitalmars-d digitalmars-d@puremagic.com wrote:
On 5/3/2014 6:44 PM, Andrei Alexandrescu wrote:
On 5/3/14, 12:40 PM, Walter Bright wrote:
On 5/1/2014 7:59 AM, Andrei Alexandrescu wrote:
If a class has at least one member with a
On Sat, May 3, 2014 at 3:49 AM, Benjamin Thaut via Digitalmars-d
digitalmars-d@puremagic.com wrote:
2) Quit D. (which is becomeing more and more an option when reading the
recent news group discussions.)
--
Kind Regards
Benjamin Thaut
I never thought I would say this, but I have begun to
On Sat, 03 May 2014 15:44:03 -0700
Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com
wrote:
On 5/3/14, 12:40 PM, Walter Bright wrote:
On 5/1/2014 7:59 AM, Andrei Alexandrescu wrote:
If a class has at least one member with a
destructor, the compiler might need to generate a
On Sat, 03 May 2014 19:36:53 -0700
Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote:
On 5/3/2014 6:57 PM, Nick Sabalausky wrote:
I'm not sure mock networks can really be used for testing a
client-only lib of some specific protocol. There may also be other
examples.
On 5/3/14, 8:48 PM, Caligo via Digitalmars-d wrote:
On Sat, May 3, 2014 at 3:49 AM, Benjamin Thaut via Digitalmars-d
digitalmars-d@puremagic.com mailto:digitalmars-d@puremagic.com wrote:
2) Quit D. (which is becomeing more and more an option when reading
the recent news group
Hi,everyone,
I build the dlangui on win7 x64,use the debug win32,it can get
the example1.exe,
but use the debug x64,not get the exe file,the error is
Error: function pointer FreeImage_OpenMemory (ubyte* data =
null, uint size_in_bytes = 0u) is not callable using argument
types (ubyte*,
On Saturday, 3 May 2014 at 08:59:40 UTC, FrankLike wrote:
Hi,everyone,
I build the dlangui on win7 x64,use the debug win32,it can get
the example1.exe,
but use the debug x64,not get the exe file,the error is
Error: function pointer FreeImage_OpenMemory (ubyte* data =
null, uint
On Friday, 2 May 2014 at 22:34:48 UTC, Tim Holzschuh via
Digitalmars-d-learn wrote:
Hi there,
I currently try to write a simple math-parser in D.
However.. something isn't working and I just can't figure out
what's the problem.
(I'm relative new to D, and this is my first test to write a
On 05/03/2014 12:34 AM, Tim Holzschuh via Digitalmars-d-learn wrote:
Most probably this isn't a wrong use of something D-specific
Some of the problems are:
@property Lexer lexer() pure { return _lexer; }
If you change the result of a call to 'lexer' this will not change
'_lexer'. Mark the
On 05/03/14 01:05, Mark Isaacson via Digitalmars-d-learn wrote:
2) I ran into this issue while attempting to leverage the postblit for
code-reuse. In particular, I have a setup that is similar to:
struct A {
this(B b) { /* Stuff */ }
}
struct B {
}
void foo(T)(T param) {
auto a
Hi,
I am very new to D, I just started with it a week ago or so, and
I haven't really been using compiled languages before (except for
Java), so I'm pretty confused with the whole thing in general. ;)
I try to use the ncurses library in my project using:
dependencies : {
ncurses :
The problem I am running in to now is that Xamarin Studio now
launches Test.pdb.exe which doesn't seem to do anything at all.
Use visual d,it's simple for using pdb.exe
On 5/3/2014 9:36 PM, Joakim wrote:
Terminated, exit code: 2
I have no idea where to go from here to be honest. It's probably
something easily fixed for someone even a tiny bit more
experienced.
I would love some help if anyone feels up to it.
Have you actually installed
On Saturday, 3 May 2014 at 13:18:13 UTC, FrankLike wrote:
The problem I am running in to now is that Xamarin Studio now
launches Test.pdb.exe which doesn't seem to do anything at all.
Use visual d,it's simple for using pdb.exe
Which isn't really an option, Visual D is for Visual Studio
Have you actually installed ncurses on your system?
https://gist.github.com/cnruby/960344
I will try this, but I did a search/info with homebrew and it
said it was not recommended because OS X already has ncurses
installed by default. Something about conflicts that could
possibly occur. I
It worked perfecly. I knew I had missed something stupid. :)
What confused me was the homebrew warning.
Thank you for helping a newbie out. :)
Am 03.05.2014 11:17, schrieb Rikki Cattermole via Digitalmars-d-learn:
General suggestions:
Don't commit the build ext. files along with source code and in this
case they aren't needed. Mono-D can load dub.json straight. As well as
the obj/bin directories.
Yeah you're right, thank you.
(And
Am 03.05.2014 13:29, schrieb Timon Gehr via Digitalmars-d-learn:
@property Lexer lexer() pure { return _lexer; }
If you change the result of a call to 'lexer' this will not change
'_lexer'. Mark the property 'ref' or get rid of it
How did I forget about Lexer being a struct is a value
On 05/03/2014 08:20 PM, Tim Holzschuh via Digitalmars-d-learn wrote:
Let me know if you also want hints on how to get the logic right.
Would be very nice!
While 2*2 works, 2+2 throws an Error because the number-method gets an
END-Token instead of a Number-Token (although I'm not sure why).
What actually fails is the initialization of 'a'.
Add another
this(A a) { /* Stuff */ }
constructor to the 'A' struct, and it will work.
And, yes, the missing cpctors are a language problem.
artur
Thanks. Yeah, I figured I could do that, I was just hoping that I
could leverage the
I tried the following:
dub install derelict
but i only received the following error
The 'install' Command was renamed to 'fetch'. Please update your
scripts.
Getting a release version failed: No package derelict was found
matching the dependency =0.0.0
Retry with ~master...
Fetching derelict
import std.algorithm;
int toInt(char c) { return 1; }
void main()
{
map!(a = toInt(a))(hello);
}
Can someone please explain why I get this:
Bug.d(10): Error: function Bug.toInt (char c) is not callable using
argument types (dchar)
On Sat, 03 May 2014 14:47:56 -0700
David Held via Digitalmars-d-learn digitalmars-d-learn@puremagic.com
wrote:
import std.algorithm;
int toInt(char c) { return 1; }
void main()
{
map!(a = toInt(a))(hello);
}
Can someone please explain why I get this:
Bug.d(10): Error:
I've put up a module
https://github.com/nordlow/justd/blob/master/enums.d
that provides two type constructors
- EnumChain
- EnumUnion
that can be used to combine names or names-and-values from one or
more enums.
I would now like to define rules for assignments and implicit
conversions
https://issues.dlang.org/show_bug.cgi?id=12695
Issue ID: 12695
Summary: GIT HEAD : undefined symbols when -debug specified
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
1 - 100 of 115 matches
Mail list logo