On Monday, 22 January 2024 at 08:54:54 UTC, zjh wrote:
On Monday, 22 January 2024 at 08:27:36 UTC, Joel wrote:
```d
import std;
struct Person {
string name, email;
ulong age;
auto withName(string name) { this.name=name; return this; }
auto withEmail(string email) {
On Monday, 22 January 2024 at 08:27:36 UTC, Joel wrote:
I've been watching a video (YouTube - "Pipeline-oriented
programming - Scott Wlaschin - NDC Porto 2023") with something
like the following code. This only sets the first method call,
so I'm wanting to know how to make this work, for the
I've been watching a video (YouTube - "Pipeline-oriented
programming - Scott Wlaschin - NDC Porto 2023") with something
like the following code. This only sets the first method call, so
I'm wanting to know how to make this work, for the subsequent
methods.
```d
import std;
struct Person {
On Wednesday, 20 December 2023 at 01:45:57 UTC, Joel wrote:
The dots are supposed to keep moving till they hit something
then change direction.
[...]
Oh, I found the problem, I wasn't resetting the hit bool variable.
The dots are supposed to keep moving till they hit something then
change direction.
Using DotsLogicType.solid the move at first, but then stop moving
once they hit something.
What supposed to happen: First they check left or right
(depending on the dir.x is negative or positive). If no dots
On Wednesday, 4 October 2023 at 11:01:08 UTC, Johan wrote:
On Tuesday, 3 October 2023 at 23:55:05 UTC, confuzzled wrote:
[...]
Try passing `-ld_classic` to the linker. (`dmd -L-ld_classic`)
https://github.com/ldc-developers/ldc/issues/4501#issuecomment-1738295459
-Johan
I've been holding
On Thursday, 14 December 2023 at 08:47:49 UTC, Anonymouse wrote:
On Thursday, 14 December 2023 at 03:58:37 UTC, Joel wrote:
If I get user input, for example, how do I check to see if
it's a valid path, like, file name.
```d
// something like this:
if (getUserInput.isValidPath) {
...
}
```
On Tuesday, 12 December 2023 at 09:43:39 UTC, Joel wrote:
I've got this mixin thing, I think it's less typo-prone. I
haven't been able to make it show the variable's name, though.
Also, it should be optional whether it prints anything, (it's
not hard for me to do that though).
```d
//
I've got this mixin thing, I think it's less typo-prone. I
haven't been able to make it show the variable's name, though.
Also, it should be optional whether it prints anything, (it's not
hard for me to do that though).
```d
// mixin(jread("width")); -> fread(, 1, width.sizeof,
bfile);
auto
What am I missing?
```d
import std;
void main() {
struct DateRem {
Date date;
string rem;
string toString() const => text(date.toSimpleString, " ",
rem);
}
DateRem[] daterem;
data
.splitter('\n')
.filter!(l => l.length && l[0].isDigit)
On Tuesday, 3 October 2023 at 17:42:51 UTC, Jonathan M Davis
wrote:
On Tuesday, October 3, 2023 8:35:31 AM MDT Joel via
Digitalmars-d-learn wrote:
[...]
Yeah. static if will compile in the code in that branch based
on whether the condition is true, whereas if without the static
will branch
The following program crashes, but doesn’t if I change (see
title) T[] to auto. The program doesn’t even use that
method/function. What’s the story?
```d
// Adding program - literal functions
import std;
struct List(T) {
class Node {
T data;
Node next;
this(T
On Tuesday, 3 October 2023 at 14:06:37 UTC, ryuukk_ wrote:
On Tuesday, 3 October 2023 at 11:43:46 UTC, Joel wrote:
I’ve got a struct that has a method that adds numbers
together. I want to do something like this, static if
(isInteger!T) … but it isn’t working. static if (is(T==int))
works for
I’ve got a struct that has a method that adds numbers together. I
want to do something like this, static if (isInteger!T) … but it
isn’t working. static if (is(T==int)) works for one integer type.
```d
struct List(T) {
auto addUp()
If (isInteger!T) {
(Add numbers)
On Monday, 2 October 2023 at 02:47:37 UTC, Joel wrote:
```d
import std;
auto data=“I went for a walk, and fell down a hole.”;
```
[snip]
How can I improve this code? Like avoiding using foreach.
This works for me:
```d
import std;
auto data="I went for a walk, and fell down a hole.";
On Monday, 2 October 2023 at 02:47:37 UTC, Joel wrote:
```d
import std;
auto data=“I went for a walk, and fell down a hole.”;
void main(string[] args) {
int[string] dic;
struct WordCnt {
string word;
ulong count;
string toString() const {
return
On Monday, 2 October 2023 at 06:19:29 UTC, Imperatorn wrote:
On Monday, 2 October 2023 at 02:47:37 UTC, Joel wrote:
```d
import std;
auto data=“I went for a walk, and fell down a hole.”;
You can improve it further by inlining
```d
import std;
auto data = "I went for a walk, and fell down a
```d
import std;
auto data=“I went for a walk, and fell down a hole.”;
void main(string[] args) {
int[string] dic;
struct WordCnt {
string word;
ulong count;
string toString() const {
return text("Word: ", word, " - number of instances:
", count);
```d
void main() {
import std.string : split;
import std.algorithm.searching : startsWith;
string bk="Exo";
assert(("Gen Exo Lev Num Deu Jos Judg Rut 1Sam 2Sam".split~
"1Kin 2Kin 1Chr 2Chr Ezra Neh Est Job Psa Pro Ecc Son
Isa Jer".split~
"Lam Eze Dan Hos
On Thursday, 17 August 2023 at 14:14:00 UTC, bachmeier wrote:
On Thursday, 17 August 2023 at 09:28:05 UTC, Joel wrote:
I get an compile time error with sort after using toLower,
putting in array before sort, didn’t work:
```d
void main() {
Import std;
"EzraTezla"
On Wednesday, 16 August 2023 at 05:40:09 UTC, FeepingCreature
wrote:
On Tuesday, 15 August 2023 at 20:09:28 UTC, Joel wrote:
On Tuesday, 15 August 2023 at 16:54:49 UTC, FeepingCreature
wrote:
But does *not* import `std.ascii`! So there's no ambiguity
inside the `sort` string expression between
On Tuesday, 15 August 2023 at 16:54:49 UTC, FeepingCreature wrote:
On Tuesday, 15 August 2023 at 16:47:36 UTC, Joel wrote:
[...]
When you pass a string to a lambda, it's evaluated in
`std.functional.unaryFun`/`binaryFun`.
At that point, these modules are imported for use in string
How come toLower works in the sort quotes, but not in the map?
```d
void main() {
import std;
"EzraTezla"
.to!(char[])
.byCodeUnit
.sort!"a.toLower c.toLower)
.writeln;
}
```
onlineapp.d(60): Error: `toLower` matches conflicting symbols:
On Thursday, 20 April 2023 at 21:28:48 UTC, John Chapman wrote:
On Thursday, 20 April 2023 at 19:41:21 UTC, Joel wrote:
// how do I get the total of ages added together?
p.map!(x => x.age).sum();
Or: p.map!"a.age".sum; works too.
```d
import std;
struct Person {
string name;
ulong age;
}
void main() {
auto p=[Person("Joel", 43), Person("Timothy", 40)];
writeln("Total: ", p.reduce!((a,b) => a.age+b.age)(0UL)); //
how do I get the total of ages added together?
}
```
On Wednesday, 11 January 2023 at 06:00:26 UTC, Salih Dincer wrote:
On Wednesday, 11 January 2023 at 02:15:13 UTC, Joel wrote:
I get this error after a while (seems append doesn't close the
file each time):
There is no error in the function or Phobos. There may be
another error on your
I get this error after a while (seems append doesn't close the
file each time):
std.file.FileException@std/file.d(836): history.txt: Too many
open files
```d
auto jm_addToHistory(T...)(T args) {
import std.conv : text;
import std.file : append;
auto txt = text(args);
On Monday, 12 December 2022 at 04:49:09 UTC, Siarhei Siamashka
wrote:
On Sunday, 11 December 2022 at 06:50:44 UTC, Joel wrote:
I've been trying to fill in areas with a colour but can't work
it out. I want something like the effect where it fills with
diamonds. Not all at once but building up
I've been trying to fill in areas with a colour but can't work it
out. I want something like the effect where it fills with
diamonds. Not all at once but building up in the main program
loop.
# #
# #
# # #
# #
# #
On Tuesday, 29 November 2022 at 07:17:09 UTC, Joel wrote:
On Saturday, 30 November 2019 at 00:17:51 UTC, Mike Wey wrote:
On 29-11-2019 04:40, Joel wrote:
Oh, I used 'brew install gtk+3', and the test program worked,
but (see below) I don't know about all that installing - is
that alright?
On Saturday, 30 November 2019 at 00:17:51 UTC, Mike Wey wrote:
On 29-11-2019 04:40, Joel wrote:
Oh, I used 'brew install gtk+3', and the test program worked,
but (see below) I don't know about all that installing - is
that alright?
They all look like GTK+ dependencies so that would be
On Sunday, 6 November 2022 at 17:15:03 UTC, rikki cattermole
wrote:
On 07/11/2022 5:48 AM, Joel wrote:
The algorithm is too hard for me to work out and dg2d doesn't
help either. I want my code fixed up so that works from any
two points.
Its not as complex as that page initially looks.
```
On Sunday, 6 November 2022 at 11:40:40 UTC, claptrap wrote:
On Sunday, 6 November 2022 at 11:22:26 UTC, Joel wrote:
I found some code on the net but haven't been able to get it
working properly. I trying to draw with mouse (any direction).
this is the classic integer line drawing algorithm...
I found some code on the net but haven't been able to get it
working properly. I trying to draw with mouse (any direction).
```d
void drawLine(Dot s, Dot e) {
auto d=s;
/+
// import std.algorithm : swap;
if (s.pos.X>e.pos.X) {
On Tuesday, 18 October 2022 at 05:48:27 UTC, Ali Çehreli wrote:
On 10/17/22 22:40, Joel wrote:
> I have two text fields. The one on the left has the whole
text, new
> stuff being added to the bottom. The one on the right has
text I've been
> wiping as I'm reading.
I think this can be modelled
On Tuesday, 18 October 2022 at 05:48:27 UTC, Ali Çehreli wrote:
On 10/17/22 22:40, Joel wrote:
> I have two text fields. The one on the left has the whole
text, new
> stuff being added to the bottom. The one on the right has
text I've been
> wiping as I'm reading.
I think this can be modelled
I'm trying to add a feature to my text modifying program. I take
a lot of notes but I want to be able to both wipe what I've read
while still adding more notes as I go.
I have two text fields. The one on the left has the whole text,
new stuff being added to the bottom. The one on the right
On Tuesday, 11 October 2022 at 23:28:50 UTC, Adam D Ruppe wrote:
I'm just eyeballing the code, is it the g_dateTimeCursor you're
concerned about? That's the only one I really see there.
[...]
Yes! :-D getControl was the issue, I've used ref on its return
value now. Thanks so much for your
On Tuesday, 11 October 2022 at 22:21:35 UTC, Adam D Ruppe wrote:
On Tuesday, 11 October 2022 at 22:09:34 UTC, Joel wrote:
I've been working on a diary program (ChronoLog). but lately
my date and time variable keeps resetting. I've spent hours
trying to fix it. I'm wondering if there's a known
I've been working on a diary program (ChronoLog). but lately my
date and time variable keeps resetting. I've spent hours trying
to fix it. I'm wondering if there's a known issue.
On Wednesday, 16 February 2022 at 15:54:26 UTC, Ron Tarrant wrote:
On Monday, 14 February 2022 at 00:39:30 UTC, Joel wrote:
My GtkD programs compile and run (on Monterey - works on
earlier versions), but not GUI displayed?!
I asked on the GtkD forum, but they said about not having a
mac or
My GtkD programs compile and run (on Monterey - works on earlier
versions), but not GUI displayed?!
I asked on the GtkD forum, but they said about not having a mac
or something.
I found using timeLastModified from macOS drive to ExFat, macOS
has higher precision than ExFat[0], so a different number. My
little program lists the files to update, but I get files to
update still, after updating them, because of the differences
with the disk formats.
[0] from time:
On Tuesday, 27 October 2020 at 08:14:28 UTC, Imperatorn wrote:
On Tuesday, 27 October 2020 at 07:32:30 UTC, Joel wrote:
On Tuesday, 27 October 2020 at 07:17:46 UTC, Imperatorn wrote:
On Monday, 26 October 2020 at 23:38:22 UTC, Joel wrote:
```
struct vec3d
{
float x, y, z;
}
[...]
On Tuesday, 27 October 2020 at 07:17:46 UTC, Imperatorn wrote:
On Monday, 26 October 2020 at 23:38:22 UTC, Joel wrote:
```
struct vec3d
{
float x, y, z;
}
[...]
It's not really clear what your question is.
I'm trying to convert from C++ code to D code, see where I've put
'// This
On Monday, 26 October 2020 at 23:38:22 UTC, Joel wrote:
```
struct vec3d
{
float x, y, z;
}
struct triangle
{
vec3d[3] p;
}
struct mesh
{
triangle[] tris;
}
// This here
meshCube.tris = {
// SOUTH
{ 0.0f, 0.0f, 0.0f,0.0f, 1.0f, 0.0f,1.0f,
```
struct vec3d
{
float x, y, z;
}
struct triangle
{
vec3d[3] p;
}
struct mesh
{
triangle[] tris;
}
// This here
meshCube.tris = {
// SOUTH
{ 0.0f, 0.0f, 0.0f,0.0f, 1.0f, 0.0f,1.0f, 1.0f, 0.0f },
{ 0.0f, 0.0f,
On Saturday, 4 July 2020 at 01:15:03 UTC, Joel wrote:
Using Windows 10.
In my dub.json file I have:
"lflags" : ["+..\\DAllegro5\\lib\\"],
But I get:
Linking...
lld-link: error: could not open '+..\DAllegro5\lib\': no such
file or directory
lld-link: error: could not open 'allegro.lib': no
On Sunday, 16 August 2020 at 18:13:07 UTC, Anonymouse wrote:
On Sunday, 16 August 2020 at 10:07:02 UTC, Simen Kjærås wrote:
On Saturday, 15 August 2020 at 23:59:36 UTC, Joel wrote:
[...]
First, what's wrong with using writeln and friends instead of
directly mucking about with stdout? :p
../../JMiscLib/source/jmisc/base.d(176,2): Error: @safe function
jmisc.base.upDateStatus!string.upDateStatus cannot call @system
function std.stdio.makeGlobal!"core.stdc.stdio.stdout".makeGlobal
/Library/D/dmd/src/phobos/std/stdio.d(4837,20):
Using Windows 10.
In my dub.json file I have:
"lflags" : ["+..\\DAllegro5\\lib\\"],
But I get:
Linking...
lld-link: error: could not open '+..\DAllegro5\lib\': no such
file or directory
lld-link: error: could not open 'allegro.lib': no such file or
directory
...
lld-link: error: could not
On Tuesday, 16 June 2020 at 07:39:20 UTC, Luis wrote:
On Tuesday, 16 June 2020 at 06:19:51 UTC, Joel wrote:
[...]
I understand that where the trivial test code is placed, must
be something more complex being tested.
@("dummy test 1");
unittest {
/// Some test code that runs fine
}
I've tired different unit test libraries, but they jump out on
errors instead of just adding to failed numbers.
I'm thinking like this:
```
@("dummy");
unittset {
0.shouldEqual(0);
1.shouldEqual(2);
2.shouldEqual(3);
}
```
Test: dummy
test passed line 10: 0 is equal to 0
test failed
On Thursday, 21 May 2020 at 06:23:10 UTC, Joel wrote:
With Windows OS.
How would I use my USB drive to compile and run (with 64-bit
too)?
So far I made a bat file that adds D to %PATH%. There's no zip
file of DMD to download, and I didn't get the 7z to work (even
with the 7z program?!) -
On Wednesday, 20 May 2020 at 09:31:38 UTC, Nathan S. wrote:
On Tuesday, 19 May 2020 at 04:54:38 UTC, Joel wrote:
I tried with DMD32 D Compiler v2.088.1-dirty, and it compiled
and created an exe file, but not run (msvcr100.dll not found -
and tried to find it on the net without success).
DMD
With Windows OS.
How would I use my USB drive to compile and run (with 64-bit too)?
So far I made a bat file that adds D to %PATH%. There's no zip
file of DMD to download, and I didn't get the 7z to work (even
with the 7z program?!) - last time I tried. With 64-bit, I don't
see what to do
I tried with DMD32 D Compiler v2.088.1-dirty, and it compiled and
created an exe file, but not run (msvcr100.dll not found - and
tried to find it on the net without success).
I think is works with older versions of DMD.
D:\jpro\dpro2\SpellIt>dub
Performing "debug" build using D:\jpro\dmd2\windows\bin\dmd.exe
for x86_64.
bindbc-loader 0.3.0: target for configuration "noBC" is up to
date.
bindbc-sdl 0.18.0: target for configuration "dynamic" is up to
date.
spellit
On Monday, 11 May 2020 at 11:37:40 UTC, Simen Kjærås wrote:
On Monday, 11 May 2020 at 11:20:51 UTC, Joel wrote:
I'm gotten stuck with this error - "..is not visible from
module.."
Without some code it's hard to say exactly, but this generally
means you're referencing a private symbol in a
I'm gotten stuck with this error - "..is not visible from
module.."
On Friday, 29 November 2019 at 08:22:09 UTC, Joel wrote:
I've used dub alright, but don't know how to install the dylib
files:
object.Exception@../../../../.dub/packages/gtk-d-3.9.0/gtk-d/generated/gtkd/gtkd/Loader.d(125):
Library load failed (libatk-1.0.0.dylib): dlopen(libatk-1.0.0.dylib,
I've used dub alright, but don't know how to install the dylib
files:
object.Exception@../../../../.dub/packages/gtk-d-3.9.0/gtk-d/generated/gtkd/gtkd/Loader.d(125):
Library load failed (libatk-1.0.0.dylib): dlopen(libatk-1.0.0.dylib, 258):
image not found
What's a good way to fix this
On Wednesday, 20 November 2019 at 00:07:53 UTC, Joel wrote:
On Tuesday, 19 November 2019 at 14:20:39 UTC, Kagamin wrote:
On Monday, 18 November 2019 at 06:44:43 UTC, Joel wrote:
```
http://www.w3.org/2001/XMLSchema-instance;>
```
You're missing a closing tag.
I can store the ASV
On Tuesday, 19 November 2019 at 14:20:39 UTC, Kagamin wrote:
On Monday, 18 November 2019 at 06:44:43 UTC, Joel wrote:
```
http://www.w3.org/2001/XMLSchema-instance;>
```
You're missing a closing tag.
I can store the ASV Bible in an array (I check for if the last
book, chapter, and
On Tuesday, 19 November 2019 at 04:43:31 UTC, Joel wrote:
On Tuesday, 19 November 2019 at 02:45:29 UTC, Jonathan M Davis
wrote:
[...]
Thanks for taking the time to reply.
I have had another xml Bible version text in the past [1]. It
had a different format. And Adam Ruppe helped me by
On Tuesday, 19 November 2019 at 02:45:29 UTC, Jonathan M Davis
wrote:
On Sunday, November 17, 2019 11:44:43 PM MST Joel via
Digitalmars-d-learn wrote:
[...]
You need to be checking the type of the entity before you call
either name or text on it, because not all entities have a
name
On Monday, 18 November 2019 at 06:44:43 UTC, Joel wrote:
with(ver)
vers ~= Verse(id,b,c,v,t);
Or, vers ~= ver;
I can only parse one row successfully. I tried increasing the
popFronts, till it said I'd gone off the end.
Running ./app
core.exception.AssertError@../../../../.dub/packages/dxml-0.4.1/dxml/source/dxml/parser.d(1457):
text cannot be called with elementEnd
??:? _d_assert_msg
On Friday, 15 November 2019 at 04:26:58 UTC, Jon Degenhardt wrote:
On Friday, 15 November 2019 at 03:51:04 UTC, Joel wrote:
I made a feature that converts, say, [9:59am] -> [10:00am] to
1 minute. but found '9'.to!int = 57 (not 9).
Doesn't seem right... I'm guessing that's standard though,
I made a feature that converts, say, [9:59am] -> [10:00am] to 1
minute. but found '9'.to!int = 57 (not 9).
Doesn't seem right... I'm guessing that's standard though, same
with ldc.
On Wednesday, 30 October 2019 at 03:56:40 UTC, Joel wrote:
I have DLangUI program that works on macOS, but only compiles
Windows. It returns -1. Is there a gotcha? It doesn't ask for
any DLL's.
Windows 10 Pro
I got programs to compile and run with bindbc-sdl, for example.
I have DLangUI program that works on macOS, but only compiles
Windows. It returns -1. Is there a gotcha? It doesn't ask for any
DLL's.
Windows 10 Pro
On Wednesday, 16 October 2019 at 02:30:58 UTC, Joel wrote:
How would I go about uninstalling D's DMG file, (as I'm weary
of installing it)?
I usually, use Home Brew, but the lastest on that doesn't work
(macOS Catalina). I guess I can just wipe off the executable
files that DMG produces,
How would I go about uninstalling D's DMG file, (as I'm weary of
installing it)?
I usually, use Home Brew, but the lastest on that doesn't work
(macOS Catalina). I guess I can just wipe off the executable
files that DMG produces, aye?
On Monday, 14 October 2019 at 18:49:04 UTC, Jacob Carlborg wrote:
On 2019-10-14 07:36, Joel wrote:
I use Home Brew (brew upgrade dmd, and brew upgrade dub)
Brew is only up to 2.087.1 at the moment - John Colvin seems
to be the man that mantains dmd with brew.
You can use DVM [1] to install
On Monday, 14 October 2019 at 18:49:04 UTC, Jacob Carlborg wrote:
On 2019-10-14 07:36, Joel wrote:
I use Home Brew (brew upgrade dmd, and brew upgrade dub)
Brew is only up to 2.087.1 at the moment - John Colvin seems
to be the man that mantains dmd with brew.
You can use DVM [1] to install
On Friday, 11 October 2019 at 11:38:27 UTC, Jacob Carlborg wrote:
On 2019-10-10 20:12, Robert M. Münch wrote:
I have two project I want to compile and both times get this
error:
Undefined symbols for architecture x86_64:
"_dyld_enumerate_tlv_storage", referenced from:
On Sunday, 15 September 2019 at 10:52:43 UTC, rikki cattermole
wrote:
On 15/09/2019 12:16 PM, Joel wrote:
What is a good keyboard input handler or so? Just need one
that picks up that a key is down, but not like a word
processor.
Are you referring to when you hold down a key and multiple
What is a good keyboard input handler or so? Just need one that
picks up that a key is down, but not like a word processor.
On Saturday, 14 September 2019 at 10:14:19 UTC, psyscout wrote:
On Friday, 13 September 2019 at 23:47:00 UTC, Joel wrote:
[...]
I had a similar issue with crazy CPU consumption when I used VS
Code. The root cause for me was "autosave" and "build on save"
settings turned on simultaneously.
On my macOS 10.14.6 computer, I close serve-d thread when it's
using too much CPU, I also knock off spindump for the same
reason. I get artifacts and junk that flash on my screen - I
don't know if that's connected to removing those or not. Does
anyone else have these problems? I always have
On Friday, 13 September 2019 at 12:20:48 UTC, H. S. Teoh wrote:
On Fri, Sep 13, 2019 at 05:57:53AM +, Joel via
Digitalmars-d-learn wrote: [...]
jex(2204,0x75356000) malloc: Incorrect checksum for freed
object
0x7ffc9368cdf8: probably modified after being freed.
Corrupt value
On Friday, 13 September 2019 at 10:02:35 UTC, Joel wrote:
On Friday, 13 September 2019 at 09:54:58 UTC, Kagamin wrote:
Maybe you upgraded SFML and now binding doesn't match?
I didn't touch SFML dylibs. I guess I could try recompling
them. It's a bit late here in New Zealand, though.
I
On Friday, 13 September 2019 at 09:54:58 UTC, Kagamin wrote:
Maybe you upgraded SFML and now binding doesn't match?
I didn't touch SFML dylibs. I guess I could try recompling them.
It's a bit late here in New Zealand, though.
On Friday, 13 September 2019 at 06:07:57 UTC, Joel wrote:
On Friday, 13 September 2019 at 05:57:53 UTC, Joel wrote:
On Friday, 13 September 2019 at 05:39:06 UTC, Joel wrote:
[...]
Actually, forget about the above. It's still crashing in run
time.
jex(2204,0x75356000) malloc: Incorrect
On Sunday, 21 April 2019 at 16:20:51 UTC, WebFreak001 wrote:
I'm trying to GC profile serve-d which uses a lot of fibers
potentially also across some threads and some threads doing
some dedicated work, however -profile=gc doesn't seem to work
properly. It logs `shared static this` calls and
On Friday, 13 September 2019 at 05:57:53 UTC, Joel wrote:
On Friday, 13 September 2019 at 05:39:06 UTC, Joel wrote:
[...]
Actually, forget about the above. It's still crashing in run
time.
jex(2204,0x75356000) malloc: Incorrect checksum for freed
object 0x7ffc9368cdf8: probably
On Friday, 13 September 2019 at 05:39:06 UTC, Joel wrote:
I edited one of my librarys and found my programs crashing. At
first, I couldn't find what was wrong but used GitHub to review
my changes. I found an enum[0] that had a name change - that my
programs weren't even using. All the change
I edited one of my librarys and found my programs crashing. At
first, I couldn't find what was wrong but used GitHub to review
my changes. I found an enum[0] that had a name change - that my
programs weren't even using. All the change that was from 'enum
g_Draw {text, input}' to 'enum g_draw
I'm trying to understand delegates. Is there any good ways I can
get a better understanding of them?
On Sunday, 14 April 2019 at 02:12:28 UTC, evilrat wrote:
On Saturday, 13 April 2019 at 12:00:30 UTC, Joel wrote:
[...]
option 1 - using override DPI function:
---
[...]
Thanks, option 1 pretty much worked - though overrideScreenDPI
didn't compile with float type (int type
On Saturday, 13 April 2019 at 02:35:59 UTC, evilrat wrote:
On Friday, 12 April 2019 at 08:39:52 UTC, Joel wrote:
[...]
It should detect DPI for you, and internally do the scaling.
Though I don't know if it works at all.
In case it is not yet implemented try this
I got a new computer (another MacBook Pro, but this one has
retina display), now I don't think I can use my main programs
(done in DlangUI), without eye strain and having my head close to
the screen.
I noticed a lot of forked versions of the said library. Do any
have a fix for the tiny
On Thursday, 11 April 2019 at 23:22:19 UTC, Joel wrote:
I've ordered a new computer, and it has Mojave OS. It's 64 bit
only, so I'm wondering what difference would that make with
things like with C bindings and stuff.
For example would https://code.dlang.org/packages/dsfml and
I've ordered a new computer, and it has Mojave OS. It's 64 bit
only, so I'm wondering what difference would that make with
things like with C bindings and stuff.
For example would https://code.dlang.org/packages/dsfml and
https://code.dlang.org/packages/dlangui librarys work?
On Monday, 18 March 2019 at 20:25:14 UTC, Joel wrote:
On Sunday, 17 March 2019 at 09:04:37 UTC, Eugene Wissner wrote:
On Sunday, 17 March 2019 at 07:20:47 UTC, Joel wrote:
macOS 10.13.6
dmd 2.085.0
dub 1.3.0
[snip]
dub 1.3.0 is something old. Is it reproducable with a newer
version?
On Sunday, 17 March 2019 at 09:04:37 UTC, Eugene Wissner wrote:
On Sunday, 17 March 2019 at 07:20:47 UTC, Joel wrote:
macOS 10.13.6
dmd 2.085.0
dub 1.3.0
[snip]
dub 1.3.0 is something old. Is it reproducable with a newer
version?
Can one safely update dub by it's self (Home Brew), when
macOS 10.13.6
dmd 2.085.0
dub 1.3.0
{
"name": "server",
"targetType": "executable",
"description": "A testing D application.",
"sourcePaths" : ["source"],
"dependencies":
{
"vibe-d" : "~>0.8.0"
}
}
void main()
{
import vibe.d;
On Monday, 3 December 2018 at 06:55:50 UTC, Nicholas Wilson wrote:
On Monday, 3 December 2018 at 06:09:21 UTC, Joel wrote:
[...]
https://run.dlang.io/is/h0ArAB
works for me. If you want it as a string not char[] then
byLineCopy should work, if not just `.idup` `line`.
Oh, I was using
I can't seem to get this to work!
```
foreach(line; File("help.txt").byLine) {
writeln(line.stripLeft);
```
With the code above, I get this compile error:
source/app.d(360,36): Error: template
std.algorithm.mutation.stripLeft cannot deduce function from
argument types !()(char[]),
1 - 100 of 235 matches
Mail list logo