On Wednesday, 28 February 2018 at 20:01:34 UTC, H. S. Teoh wrote:
Just to give some background. At work I spend most of my time
maintaining legacy systems adding some small features or
replacing subcomponents. So most of what I do is reading code and
making some minor changes (unless it's bugg
On Wednesday, 28 February 2018 at 10:15:13 UTC, Zoadian wrote:
On Wednesday, 28 February 2018 at 00:53:16 UTC, psychoticRabbit
wrote:
It should have gone to the Java developers - cause they
deserved it.
C++ is the worst thing to have ever come out of computer
science!
yes c++ is not the gre
On Monday, 26 February 2018 at 23:33:48 UTC, H. S. Teoh wrote:
Not really a big deal (and auto kind of ruins it) but it would
make stuff consistent between user types and built in ones.
Not sure what you mean here. In a user type, if opBinary!"/"
returns an int, then you still have the same p
On Monday, 26 February 2018 at 21:30:09 UTC, aliak wrote:
On Monday, 26 February 2018 at 19:32:44 UTC, ketmar wrote:
WebFreak001 wrote:
And if that's also a no no, how about char -> int. Or int ->
float? Is ok?
Maybe there're some valid arguments, to disallow it
*completely* though?
Cheers
On Sunday, 8 November 2015 at 21:03:44 UTC, maik klein wrote:
Here is the blog post
https://maikklein.github.io/2015/08/11/Metaprogramming-D/
And the discussion on reddit:
https://www.reddit.com/r/programming/comments/3s1qrt/metaprogramming_in_d_from_a_beginners_perspective/
Interesting read
On Sunday, 8 November 2015 at 17:47:33 UTC, Muktabh wrote:
We cannot make D bindings to it because it is a closed source
project by Google and only a spec like mapreduce will be
released, so I thought maybe I might try and come up with an
open source implementation. I was just curious if D woul
On Sunday, 8 November 2015 at 10:22:44 UTC, FreeSlave wrote:
On Saturday, 7 November 2015 at 14:49:05 UTC, ZombineDev wrote:
basically you don't have technical reasons not to use D :D
What about the lack of proper support for dynamic libraries on
Windows and OSX? I mean, GC merging is still n
On Saturday, 31 October 2015 at 12:45:13 UTC, Jacob Carlborg
wrote:
On 2015-10-30 22:28, TheFlyingFiddle wrote:
In other languages that have Attributes (Java and C# atleast)
I can do stuff like this: (Java)
//com.bar.java
interface Bar { /*stuff*/ }
//com.foo.java
class Foo
{
Foo(@Bar int
In other languages that have Attributes (Java and C# atleast)
I can do stuff like this: (Java)
//com.bar.java
interface Bar { /*stuff*/ }
//com.foo.java
class Foo
{
Foo(@Bar int a)
{
//some stuff
}
}
I don't seem to be able to do this in D. That is I cannot do this:
enum Bar;
v
On Tuesday, 27 October 2015 at 17:48:04 UTC, Meta wrote:
On Tuesday, 27 October 2015 at 15:06:07 UTC, TheFlyingFiddle
wrote:
This can arguably already be done cleaner in D.
if (auto worldFile = getAFile("world.json"))
{
auto world = parseJSON(worldFile);
if (auto mapFile
On Tuesday, 27 October 2015 at 07:55:46 UTC, Kagamin wrote:
On Monday, 26 October 2015 at 16:42:27 UTC, TheFlyingFiddle
wrote:
If you instead use pattern matching as in your example you
have much better context information that can actually help
you do something in the case a value is not
On Monday, 26 October 2015 at 15:58:38 UTC, Edmund Smith wrote:
On Monday, 26 October 2015 at 14:13:20 UTC, TheFlyingFiddle
wrote:
On Monday, 26 October 2015 at 11:40:09 UTC, Edmund Smith wrote:
Scala's Option is really nice on the other hand since you
can/should pattern match).
Don
On Monday, 26 October 2015 at 11:40:09 UTC, Edmund Smith wrote:
On Sunday, 25 October 2015 at 06:22:51 UTC, TheFlyingFiddle
wrote:
You could also emulate constant matching using default
parameters (albeit with the restriction that they must be after
any non-default/constant parameters), since
On Sunday, 25 October 2015 at 18:23:42 UTC, Dmitry Olshansky
wrote:
I humbly believe that D may just add special re-write rule to
the switch statement in order to allow user-defined switchable
types. This goes along nicely with the trend - e.g. foreach
statement works with anything having stati
On Sunday, 25 October 2015 at 14:43:25 UTC, Nerve wrote:
On Sunday, 25 October 2015 at 06:22:51 UTC, TheFlyingFiddle
wrote:
That is actually freaking incredible. It evaluates to a value,
unwraps values, matches against the None case...I guess the
only thing it doesn't do is have com
On Sunday, 25 October 2015 at 05:45:15 UTC, Nerve wrote:
On Sunday, 25 October 2015 at 05:05:47 UTC, Rikki Cattermole
wrote:
Since I have no idea what the difference between Some(_), None
and default. I'll assume it's already doable.
_ represents all existing values not matched. In this case,
On Saturday, 24 October 2015 at 09:22:37 UTC, Jacob Carlborg
wrote:
Can these be implemented by the user just declaring a regular
container as immutable? The implement will recognize if it's
declared as immutable and adapt.
How can a type know it's qualifier?
struct Container(T)
{
// a
On Tuesday, 3 March 2015 at 17:49:07 UTC, Benjamin Thaut wrote:
Any suggestions how to fix this issue? I'm also open for
implementation hints.
Kind Regards
Benjamin Thaut
Running unittests that access private symbols from the other side
of the dll boundary sounds like a very hard problem to
On Tuesday, 3 June 2014 at 19:55:39 UTC, Mason McGill wrote:
I have a numerical/multimedia library that defines the concept
of an n-dimensional function sampled on a grid, and operations
on such grids. `InputGrid`s (analogous to `InputRange`s) can be
dense or sparse multidimensional arrays, as
On Wednesday, 28 May 2014 at 16:33:13 UTC, Russel Winder via
Digitalmars-d wrote:
On Wed, 2014-05-28 at 15:54 +, Joakim via Digitalmars-d
wrote:
[…]
A google search turns up a long review thread a couple years
ago:
http://forum.dlang.org/thread/mailman.73.1347916419.5162.digitalmar...@pur
On Monday, 24 February 2014 at 20:54:55 UTC, Eugene Yang wrote:
Hello all,
If I want to set custom imports and library search paths for a
specific project, how do I specify those paths in the sc.ini
file? Setting the DFLAGS environment variable seems to
override the default settings; is ther
On Friday, 31 January 2014 at 13:48:09 UTC, Nicolas F. wrote:
Hello,
I'm having some problems wrapping my head around shared classes
and whatnot.
So my application has a Logger class, which basically just
writes formatted messages to a target, of which debugGLLogger
inherits. What debugGLLogg
On Tuesday, 7 January 2014 at 00:54:10 UTC, bearophile wrote:
Meta:
Why not just return arr.dup instead? You're returning a slice
of a stack-allocated array, so of course you shouldn't write
code like this.
In certain critical code paths heap allocations are evil
(perhaps even if your gener
On Monday, 11 November 2013 at 12:14:10 UTC, Jonathan M Davis
wrote:
Every time you use an enum, it's replaced with its value. So,
if an enum is an
AA, then that literal is copy-pasted everywhere that the enum
is used. So, it
would almost certainly be foolish to use it anywhere other than
to as
The docs might be a little unclear about this. The template
isInstanceOf checks to see if the second parameter is a template
instantiation of the first parameter. It does not have anything
to do with inheritance.
Like so:
struct S(T) { T t; }
struct S2(T) { T t; }
import std.traits;
unittes
On Saturday, 2 November 2013 at 18:19:43 UTC, seany wrote:
Hello,
I have the following problem.
In the input consol I can input a string, and the system will
take action based on such.
So if I input add_2_with_2, it will give me a 4, if I input
sqrt_4 it will give me 2, etc. Generally, you
How complete is dll support on windows (32/64)? I'm specifically
interested in D-to-D dlls.
Can i:
1. Load phobos as a DLL
2. Throw exceptions over dll boundary
3. Use multiple threads with thread local storage in loaded dll.
27 matches
Mail list logo