On Friday, 20 May 2022 at 02:37:48 UTC, harakim wrote:
I need to write a piece of software to track and categorize
some purchases. It's the kind of thing I could probably write
in a couple of hours in C#/Java + html/css/javascript. However,
something keeps drawing me to D and as this is a
On Wednesday, 22 April 2020 at 18:35:49 UTC, CraigDillabaugh
wrote:
On Wednesday, 22 April 2020 at 18:23:48 UTC, Anonymouse wrote:
On Wednesday, 22 April 2020 at 17:48:18 UTC, Craig Dillabaugh
wrote:
clip
File an issue if you have the time, maybe it will get
attention. Unreported bugs can
So perhaps I am the only person in the world using std.json, but
I was wondering
if the following code should work.
=
import std.json;
import std.conv;
import std.stdio;
struct Person {
string name;
float income;
On Saturday, 15 February 2020 at 11:32:42 UTC, AlphaPurned wrote:
I've tried 10 different ways with split and splitter, I've used
all the stuff that people have said online but nothing works. I
always get a template mismatch error.
Why is something so easy to do so hard in D?
auto toks =
On Friday, 5 July 2019 at 12:00:15 UTC, Binarydepth wrote:
I've considering learning full D. I remembered that D is not
recommended as a first language, So I read time ago.
So my question, is learning C and Python a good intro before
learning D?
TY
Ali's book is targeted at beginners (see
On Wednesday, 7 February 2018 at 03:25:05 UTC, rikki cattermole
wrote:
On 06/02/2018 8:46 PM, Craig Dillabaugh wrote:
On Tuesday, 6 February 2018 at 18:46:54 UTC, H. S. Teoh wrote:
[...]
clip
[...]
clip
[...]
Wouldn't it be more accurate to say OO is not the correct tool
for every job
On Tuesday, 6 February 2018 at 18:46:54 UTC, H. S. Teoh wrote:
On Tue, Feb 06, 2018 at 06:33:02PM +, Ralph Doncaster via
Digitalmars-d-learn wrote:
clip
OO is outdated. D uses the range-based idiom with UFCS for
chaining operations in a way that doesn't require you to write
loops
On Monday, 4 December 2017 at 20:43:27 UTC, Dirk wrote:
Hi!
I defined an interface:
interface Medoid {
float distance( Medoid other );
uint id() const @property;
}
and a class implementing that interface:
class Item : Medoid {
float distance( Item i ) {...}
uint id() const
On Thursday, 15 June 2017 at 13:41:07 UTC, MGW wrote:
On Thursday, 15 June 2017 at 13:16:24 UTC, CRAIG DILLABAUGH
wrote:
The purpose - search of changes in file system.
Sorting is a slow operation as well as hashing. Creation of a
tree, is equally in sorting.
So far the best result:
On Thursday, 15 June 2017 at 11:48:54 UTC, Ivan Kazmenko wrote:
On Thursday, 15 June 2017 at 06:06:01 UTC, MGW wrote:
There are two arrays of string [] mas1, mas2; Size of each
about 5M lines. By the size they different, but lines in both
match for 95%. It is necessary to find all lines in an
On Wednesday, 27 July 2016 at 14:56:13 UTC, Suliman wrote:
On Wednesday, 27 July 2016 at 12:47:14 UTC, chmike wrote:
On Wednesday, 27 July 2016 at 09:39:18 UTC, Suliman wrote:
clip
Sorry, its my issue I am thinging about polygons, but for me
would be enought points.
The problem is next. I
On Wednesday, 27 July 2016 at 09:39:18 UTC, Suliman wrote:
On Wednesday, 27 July 2016 at 08:40:15 UTC, chmike wrote:
The algorithm is to draw a horizontal (or vertical) half line
starting at your point and count the number of polygon edges
crossed by the line. If that number is even, the point
On Wednesday, 6 July 2016 at 02:33:02 UTC, ketmar wrote:
On Wednesday, 6 July 2016 at 02:19:47 UTC, Craig Dillabaugh
wrote:
[...]
this is true for any dynamic array, including AAs. until
something is added to array, it actually a `null` pointer. i.e.
arrays (and AAs) generally consisting of
On Wednesday, 6 July 2016 at 02:03:54 UTC, Adam D. Ruppe wrote:
On Wednesday, 6 July 2016 at 01:58:31 UTC, Craig Dillabaugh
wrote:
*(keyvalue) ~ value; // This line fails.
That should prolly be ~= instead of ~.
Ahh, I was so close. Thank you that seems to do the trick.
However,
How can I create (and update) and associative array where the key
is a string, and the value is a dynamic array of integers?
For example:
void insertValue( int[][string]aa, string key, int value )
{
int[]* keyvalue;
keyvalue = ( key in aa );
if ( keyvalue !is null )
{
On Wednesday, 6 April 2016 at 19:01:58 UTC, Craig Dillabaugh
wrote:
On Wednesday, 6 April 2016 at 15:10:45 UTC, Andre wrote:
clip
Not so up to date on D's OOP stuff, but don't you want create()
to be protected, not private. You can typically access a
private method through a base class,
On Wednesday, 6 April 2016 at 15:10:45 UTC, Andre wrote:
Hi,
With 2.071 following coding does not compile anymore and
somehow I feel it should compile.
The issue is with line "cat.create();".
Cat is a sub type of Animal. Animal "owns" method create and I
want to call the method
create
On Thursday, 24 December 2015 at 00:16:16 UTC, rsw0x wrote:
On Tuesday, 22 December 2015 at 21:38:22 UTC, ZombineDev wrote:
On Tuesday, 22 December 2015 at 17:49:34 UTC, Jakob Jenkov
wrote:
clip
removed C++ because it just dwarfs the others.
D, as I expected, has a massive following in
On Tuesday, 4 August 2015 at 08:18:58 UTC, John Colvin wrote:
On Tuesday, 4 August 2015 at 03:20:38 UTC, Craig Dillabaugh
wrote:
I can now run it with:
LD_LIBRARY_PATH=/home/craig2/code/gdal-2.0.0/lib64 ./gdaltest
But it appears the LD_LIBRARY_PATH hack is causing havoc with
other libraries,
On Tuesday, 4 August 2015 at 04:21:27 UTC, Joakim Brännström
wrote:
On Tuesday, 4 August 2015 at 03:20:38 UTC, Craig Dillabaugh
wrote:
clip
Linkers, so fun they are...
https://wiki.debian.org/RpathIssue
As you can see in the search order RPATH takes precedence over
LD_LIBRARY_PATH.
If we
I have been writing bindings for the GDAL library (www.gdal.org).
I recently updated my bindings to the latest release of GDAL
(2.0).
Before adding my bindings to code.dlang.org I want to run some
tests. I've built GDAL2 locally and want to link my bindings to
this library. However, I
On Tuesday, 4 August 2015 at 02:45:21 UTC, Joakim Brännström
wrote:
On Tuesday, 4 August 2015 at 02:26:17 UTC, Craig Dillabaugh
wrote:
So how can I force my application to link to my local copy of
GDAL2 at /home/craig2/code/gdal-2.0.0/lib64. Any help is
appreciated.
Hi,
I recently ran into
On Friday, 10 July 2015 at 03:38:49 UTC, Craig Dillabaugh wrote:
I am trying to bind to a C union with a number of nested
structs declared as follows:
typedef union {
int Integer;
struct {
int nCount;
int *paList;
} IntegerList;
struct {
I am trying to bind to a C union with a number of nested structs
declared as follows:
typedef union {
int Integer;
struct {
int nCount;
int *paList;
} IntegerList;
struct {
int nCount;
GIntBig *paList;
} Integer64List;
}
On Wednesday, 15 April 2015 at 04:43:39 UTC, Daniel Kozák wrote:
On Wed, 15 Apr 2015 04:24:20 +
Craig Dillabaugh via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
Hi.
I want to call a C library function that returns a data buffer
as a void*. How do I convert the resulting
Hi.
I want to call a C library function that returns a data buffer as
a void*. How do I convert the resulting void* into something I
can process in D?
//I have the following function from the GDAL C library.
extern(C) CPLErr GDALReadBlock( GDALRasterBandH, int, int, void*
);
So I have
Motivated by this thread:
http://forum.dlang.org/thread/measc3$qic$1...@digitalmars.com
I was hoping to see if I could do some work on the Phobos
documentation, but I am curious to know what the easiest way for
someone with limited/no ddoc experience to get involved in this
would be. I
On Saturday, 21 March 2015 at 21:53:00 UTC, H. S. Teoh wrote:
On Sat, Mar 21, 2015 at 05:48:40PM +, Craig Dillabaugh via
Digitalmars-d-learn wrote:
Motivated by this thread:
http://forum.dlang.org/thread/measc3$qic$1...@digitalmars.com
I was hoping to see if I could do some work
On Saturday, 14 March 2015 at 09:59:05 UTC, dnewer wrote:
yes,java is good lang,but i dont think it's better than c#,if
no oracle or google support java will less and less.
C# is a good and easy lang.
i like C# .
but,C# cant compiled to native code.
So far, I have been searching for a
On Tuesday, 3 June 2014 at 16:16:10 UTC, Chris Saunders wrote:
I've made my first attempt to use dub/vibe.d and I'm running
into some issues I can't find on the list.
I'm on Ubuntu 14.04/x86_64, using the latest stable dub
(0.9.21). I can create a new dub project:
“””
$ dub init test vibe.d
On Tuesday, 3 June 2014 at 17:41:27 UTC, Chris Saunders wrote:
Thanks, I somehow missed the vibe.d forums...
I'd need an ldc solution in the end, but trying dmd is a good
idea. The result is some kind of link error to libevent?:
dub build
vibe-d: [vibe-d, libevent, openssl]
test: [test,
On Thursday, 15 May 2014 at 22:25:47 UTC, Tom Browder via
Digitalmars-d-learn wrote:
I am a volunteer developer with the well-known 3D CAD FOSS
project BRL-CAD:
http://brlcad.org
I have wanted to use D for a long time but I hadn't taken the
plunge.
Yesterday I advertised to the BRL-CAD
On Friday, 16 May 2014 at 01:16:46 UTC, Craig Dillabaugh wrote:
On Thursday, 15 May 2014 at 22:25:47 UTC, Tom Browder via
Digitalmars-d-learn wrote:
I am a volunteer developer with the well-known 3D CAD FOSS
project BRL-CAD:
http://brlcad.org
I have wanted to use D for a long time but I
I want to be able to write to the stdin stream of an external
process using std.process. I have the following small test app.
myecho.d
--
import std.stdio;
void main(string[] args)
{
foreach (line; stdin.byLine()) {
On Saturday, 26 April 2014 at 13:30:41 UTC, Adam D. Ruppe wrote:
On Saturday, 26 April 2014 at 08:45:59 UTC, Craig Dillabaugh
wrote:
Can anyone tell me what I am dong wrong.
In this case, I'd close the pipe when you're done.
pipes.stdin().writeln(Hello world);
pipes.stdin.close;
On Thursday, 24 April 2014 at 12:17:42 UTC, Nicolas wrote:
I have a json string saved in a file ( example of json tweeter
answer:
https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
). I am trying to read the whole json answer and print specific
data (created_at, retweet_count,
36 matches
Mail list logo