On Wednesday, 17 April 2024 at 11:03:22 UTC, yabobay wrote:
I'm using [dray](https://code.dlang.org/packages/dray) in my
project with dub, here's the relevant parts of the dub.json:
[...]
İt seems your issue is related to the raylib itself, neither the
binding you use nor the d programming l
On Sunday, 21 April 2024 at 14:57:33 UTC, Paolo Invernizzi wrote:
Hi,
Someone can point me to a D implementation of the classical
OpenCV find homography matrix?
Thank you,
Paolo
Kinda some work but it should be doable using DCV and mir.lubeck
in theory
DCV can compute, not sift or surf b
On Sunday, 21 April 2024 at 14:57:33 UTC, Paolo Invernizzi wrote:
Hi,
Someone can point me to a D implementation of the classical
OpenCV find homography matrix?
Thank you,
Paolo
Just for future records in the forum.
//
https://math.stackexchange.com/questions/3509039/calculate-homography-
On Saturday, 11 May 2024 at 23:44:28 UTC, Andy Valencia wrote:
I need a FIFO for a work scheduler, and nothing suitable jumped
out at me. I wrote the following, but as a newbie, would be
happy to receive any suggestions or observations. TIA!
[...]
https://dlang.org/phobos/std_container_slis
On Saturday, 11 May 2024 at 23:44:28 UTC, Andy Valencia wrote:
I need a FIFO for a work scheduler, and nothing suitable jumped
out at me. I wrote the following, but as a newbie, would be
happy to receive any suggestions or observations. TIA!
[...]
"next" is not a usual range primitive word
On Sunday, 12 May 2024 at 21:08:24 UTC, Andy Valencia wrote:
On Sunday, 12 May 2024 at 19:45:44 UTC, Ferhat Kurtulmuş wrote:
On Saturday, 11 May 2024 at 23:44:28 UTC, Andy Valencia wrote:
I need a FIFO for a work scheduler, and nothing suitable
jumped out at me.
...
https://dlang.org/phobos/st
On Saturday, 11 May 2024 at 23:44:28 UTC, Andy Valencia wrote:
I need a FIFO for a work scheduler, and nothing suitable jumped
out at me. I wrote the following, but as a newbie, would be
happy to receive any suggestions or observations. TIA!
[...]
I don't know your use case, maybe you have
On Sunday, 21 April 2024 at 14:57:33 UTC, Paolo Invernizzi wrote:
Hi,
Someone can point me to a D implementation of the classical
OpenCV find homography matrix?
Thank you,
Paolo
Now, we can do image stitching using DCV. It needs improvements
though.
https://github.com/libmir/dcv/tree/mas
On Monday, 13 May 2024 at 15:07:39 UTC, Andy Valencia wrote:
On Sunday, 12 May 2024 at 22:03:21 UTC, Ferhat Kurtulmuş wrote:
https://dlang.org/phobos/std_container_slist.html
This is a stack, isn't it? LIFO?
Ahh yes. Then use dlist
Thank you. I read its source, and was curious so I wrote a
On Friday, 24 May 2024 at 19:07:24 UTC, solidstate1991 wrote:
I have tried resource compiling, then using `dflags` in dug to
add the resulting obj file, but I still get the issue of the
old GUI style.
I did that before, but I don't remember now. Probably you will
figure that out based on this
On Friday, 24 May 2024 at 21:04:53 UTC, Ferhat Kurtulmuş wrote:
On Friday, 24 May 2024 at 19:07:24 UTC, solidstate1991 wrote:
I have tried resource compiling, then using `dflags` in dug to
add the resulting obj file, but I still get the issue of the
old GUI style.
I did that before, but I don
On Tuesday, 28 May 2024 at 17:37:42 UTC, bauss wrote:
I have two questions that I can't seem to find a solution to
after looking at std.datetime.
First question is how do I get the current time but in
milliseconds?
Second is how do I construct a time ex. systime or datetime
based on millise
On Wednesday, 12 June 2024 at 18:58:49 UTC, evilrat wrote:
On Wednesday, 12 June 2024 at 17:00:14 UTC, Vinod K Chandran
wrote:
[...]
It is probably not that well maintained, but it definitely
works with python 3.10 and maybe even 3.11, i use it to
interface with pytorch and numpy and PIL, bu
On Thursday, 13 June 2024 at 06:59:49 UTC, Menjanahary R. R.
wrote:
How important is its adoption?
Is GUI App in D frequent?
I am not sure if this is a known usage scenario with DWT. Once I
wanted to use DWT. Since it is a port to SWT of Java. You can use
existing GUI designers of SWT. They
On Friday, 14 June 2024 at 17:27:20 UTC, Menjanahary R. R. wrote:
On Thursday, 13 June 2024 at 11:31:31 UTC, Ferhat Kurtulmuş
wrote:
On Thursday, 13 June 2024 at 06:59:49 UTC, Menjanahary R. R.
wrote:
How important is its adoption?
Is GUI App in D frequent?
...
https://github.com/aferust/t
On Friday, 14 June 2024 at 17:39:00 UTC, Ferhat Kurtulmuş wrote:
On Friday, 14 June 2024 at 17:27:20 UTC, Menjanahary R. R.
wrote:
On Thursday, 13 June 2024 at 11:31:31 UTC, Ferhat Kurtulmuş
wrote:
On Thursday, 13 June 2024 at 06:59:49 UTC, Menjanahary R. R.
wrote:
How important is its adopti
On Thursday, 22 August 2024 at 07:28:00 UTC, Dakota wrote:
Is there a way to link ldc objects with Emscripten to build
wasm binary ?
Some years a go, i was able to build and run my hobby game using
EMScripen. Things must be changed now. I drop the link here. I
cannot help further since i don'
On Monday, 23 May 2022 at 09:38:07 UTC, JG wrote:
Hi,
Is there any more standard way to achieve something to the
effect of:
```d
import std.experimental.allocator;
string* name = theAllocator.make!string;
```
Pointers are not used for strings in d. string is an alias for
immutable(cha
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 in the main program
loop.
# #
# #
#
I could not find a thing doing this. And I don't want to write it
from scratch. Getting a range as output is ok too. What I need is
the following:
```c++
const std::vector v1{1, 2, 5, 5, 5, 9};
const std::vector v2{2, 5, 7};
std::vector diff;
std::set_difference(v1.begin(), v1.
On Friday, 3 February 2023 at 15:53:35 UTC, Richard (Rikki)
Andrew Cattermole wrote:
```d
import std.stdio, std.algorithm.setops, std.array;
void main() {
int[] v1 = [1, 2, 5, 5, 5, 9];
int[] v2 = [2, 5, 7];
int[] v3 = setDifference(v1, v2).array;
writefln!"%s \\ %s = %s"(v1, v2
On Saturday, 4 February 2023 at 15:52:33 UTC, Alexander Zhirov
wrote:
PS C:\sources\pxe-restore\source> dmd -i app.d
-LC:\msys64\home\user\postgresql-15.1\installed\mingw64\lib\libpq.dll
lld-link: error:
C:\msys64\home\user\postgresql-15.1\installed\mingw64\lib\libpq.dll: bad file type. Did yo
On Tuesday, 21 March 2023 at 17:46:00 UTC, H. S. Teoh wrote:
On Tue, Mar 21, 2023 at 05:29:22PM +, monkyyy via
Digitalmars-d-learn wrote:
On Tuesday, 21 March 2023 at 17:18:15 UTC, H. S. Teoh wrote:
> [...]
I vaguely remember an hour and half for 5 minutes of video
when its extremely light
On Monday, 3 April 2023 at 23:38:52 UTC, Marcone wrote:
What do you think about using Chat GPT to create functions in
D? I asked Chat-GPT to create a function in D that was similar
to the rsplit() function in Python. It returned this code to me:
import std.algorithm;
import std.array;
import
On Tuesday, 18 April 2023 at 06:20:43 UTC, Richard (Rikki) Andrew
Cattermole wrote:
On 18/04/2023 1:33 PM, Salih Dincer wrote:
I understand from the thread this: D gives us -betterC but
nothing from the Phobos. So he says, see what you have, do
what the hell you want!
Am I wrong about this?
On Thursday, 20 April 2023 at 19:41:21 UTC, Joel wrote:
```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
On Wednesday, 10 May 2023 at 18:15:36 UTC, Richard (Rikki) Andrew
Cattermole wrote:
We do not, no.
Reference counting is not currently in the language, although
you can fake it with structs.
Its a huge shame, but it should be added at some point because
the compiler would tell the backend th
On Monday, 5 June 2023 at 10:01:01 UTC, John Xu wrote:
The parseDOM returns a DOMEntity(R) type, how do I write a
xmlRoot as global variable?
I need its detailed type (auto / Variant doesn't work).
import dxml.dom;
?? xmlRoot;
int main() {
string xml = readT
On Tuesday, 6 June 2023 at 14:16:37 UTC, Steven Schveighoffer
wrote:
On 6/5/23 6:43 AM, Ferhat Kurtulmuş wrote:
On Monday, 5 June 2023 at 10:01:01 UTC, John Xu wrote:
[...]
```d
import dxml.dom;
import std.stdio;
DOMEntity!string xmlRoot;
int main()
{
string xml = "";
On Wednesday, 14 June 2023 at 19:50:21 UTC, Danico wrote:
que significa los ultimos numeros de 192.168.0.13:50732 ,
cuando hago un remoteAddress() y en un servidor socket?
Es un numero de puerto. No estoy seguro que preguntar en un
idioma otra que ingles es un buena idea aqui. Lee esto por fav
On Friday, 23 June 2023 at 15:52:44 UTC, Richard (Rikki) Andrew
Cattermole wrote:
First things first, dcv is added to the dub-registry, so use
this.
https://code.dlang.org/packages/dcv
```json
"dependencies": {
"dcv": "~>0.3.0"
}
```
For ffmpeg the binding tells you what to add for se
On Friday, 23 June 2023 at 15:22:33 UTC, Ki Rill wrote:
Recently, I tried to set up `dcv` with `dub` to improve a few
things in the library, but I faced some strange issues.
[...]
I recommend adding DCV sub packages separately. Don't add the
entire thing to your dub dependencies. Just only add
On Friday, 23 June 2023 at 23:37:29 UTC, Vinod K Chandran wrote:
Hi all,
I am trying to create a program which burns time codes to a
video. I am using ffmpeg for this. So far, I can successfully
start ffmpeg in another thread and stop it when I need. But I
can't read the live outputs from ffmp
On Sunday, 23 July 2023 at 16:21:05 UTC, Ruby The Roobster wrote:
I'm currently trying to load two textures and apply them to a
rectangle, following
[this](https://learnopengl.com/Getting-started/Textures) which
is linked to from the README file of the bindbc OpenGL bindings.
[...]
DCV uses
On Sunday, 23 July 2023 at 17:35:03 UTC, Ruby The Roobster wrote:
On Sunday, 23 July 2023 at 17:02:40 UTC, Ferhat Kurtulmuş wrote:
On Sunday, 23 July 2023 at 16:21:05 UTC, Ruby The Roobster
wrote:
I'm currently trying to load two textures and apply them to a
rectangle, following
[this](https://
On Sunday, 23 July 2023 at 18:06:46 UTC, Ruby The Roobster wrote:
On Sunday, 23 July 2023 at 17:45:53 UTC, Ferhat Kurtulmuş wrote:
On Sunday, 23 July 2023 at 17:35:03 UTC, Ruby The Roobster
[SNIP]
Thank you. I'm still trying to work out how it works. It
seems as if the creator tried the sam
On Monday, 14 August 2023 at 06:40:04 UTC, thePengüin wrote:
hola a todos quisiera ejecutar este codigo de c++
`
#include \
using namespace std;
int main() {
return 0;
}
int foo(int i, int j) {
cout \<\< i\<\
?Tu usas ambos de 64 bit o 32 bit para compiladores?
No pu
On Tuesday, 15 August 2023 at 17:59:27 UTC, vino wrote:
Hi All,
Request your help in finding duplicate element without sorting
as per the below example
```
Example:
string[] args = [" test3", "test2 ", " test1 ", " test1 ", " "];
Output Required:
If duplicate element found then print "Dupli
On Friday, 18 August 2023 at 07:54:04 UTC, Ki Rill wrote:
Is there an up-to-date tutorial?
It's just painful that I cannot find anything helpful on this
topic. The official mir-algorithm GitHub repo links to articles
with old code that won't build if I copy-paste it. I'm left
hunting down the
On Friday, 18 August 2023 at 09:57:11 UTC, Ki Rill wrote:
On Friday, 18 August 2023 at 09:32:31 UTC, Ferhat Kurtulmuş
wrote:
I believe the most recent docs for mir-algorithm is here
http://mir-algorithm.libmir.org/
Thanks. Yes, that's the only thing.
However, it's not a good starting point fo
On Saturday, 19 August 2023 at 01:44:16 UTC, Kyle Ingraham wrote:
On Friday, 18 August 2023 at 12:14:45 UTC, Ferhat Kurtulmuş
wrote:
I think the main problem is the mir libraries won't get
updates since Ilya recently said that he was not an open
source developer anymore.
That’s unfortunate fo
On Saturday, 19 August 2023 at 19:41:47 UTC, thePengüin wrote:
On Monday, 14 August 2023 at 07:36:31 UTC, Ferhat Kurtulmuş
wrote:
On Monday, 14 August 2023 at 06:40:04 UTC, thePengüin wrote:
hola a todos quisiera ejecutar este codigo de c++
`
#include \
using namespace std;
int main() {
On Saturday, 19 August 2023 at 20:50:23 UTC, thePengüin wrote:
On Saturday, 19 August 2023 at 20:16:47 UTC, Ferhat Kurtulmuş
wrote:
On Saturday, 19 August 2023 at 19:41:47 UTC, thePengüin wrote:
On Monday, 14 August 2023 at 07:36:31 UTC, Ferhat Kurtulmuş
wrote:
[...]
estoy usando el de 64 o
On Friday, 8 September 2023 at 06:42:13 UTC, Joe wrote:
Is there a D library that lets one access the web through a
browser like interface? I need to access some URLS as if I was
browsing them(it needs to run scripts in the page).
E.g., C# has WebBrowser that lets one programmatically control
On Wednesday, 13 September 2023 at 05:58:13 UTC, vino wrote:
Hi All,
Request your help, I have a struct which has many functions,
I need to run a function from within another function(From
Display function execute the runner function), an example as
below
From,
Vino
The problem starts h
On Wednesday, 11 October 2023 at 12:36:58 UTC, Paul wrote:
What does the extern (c) attribute(?) do?
Does it tell the compiler/linker to build the function like a C
compiler would build a C function? If so what does that mean?
Does it tell the compiler/linker to let C functions know it
exists?
On Friday, 24 November 2023 at 09:35:00 UTC, BoQsc wrote:
I tried to look into https://dlang.org/phobos/std_conv.html
Most of the functions inside `std.conv` seem to be dependant on
[Garbage Collection](https://dlang.org/spec/garbage.html).
And I couldn't find a straightforward way to produce
When I tried to catch exceptions in my unit test, I found that
exceptions were not thrown or caught in the unit test blocks. So,
I cannot use assertThrown at all. Is this a bug or expected
behavior that I don't know?
Using LDC 1.36.0 on Windows.
https://github.com/aferust/evalex/blob/main/sou
On Friday, 16 February 2024 at 07:54:01 UTC, Richard (Rikki)
Andrew Cattermole wrote:
This should be working.
I don't know what is going on.
All I can suggest is to use a debugger to see if it is indeed
throwing and then catching.
A test code like this works, but unittest doesn't. This is cr
On Friday, 16 February 2024 at 07:43:24 UTC, Ferhat Kurtulmuş
wrote:
When I tried to catch exceptions in my unit test, I found that
exceptions were not thrown or caught in the unit test blocks.
So, I cannot use assertThrown at all. Is this a bug or expected
behavior that I don't know?
Using L
On Friday, 16 February 2024 at 08:48:08 UTC, Jonathan M Davis
wrote:
On Friday, February 16, 2024 1:06:26 AM MST Ferhat Kurtulmuş
via Digitalmars- d-learn wrote:
[...]
1. assertThrown does not test whether something somewhere in
what you called threw an exception. It asserts that it catches
On Monday, 11 March 2024 at 14:26:01 UTC, Andrea wrote:
Hi folks,
Working on a side project I have the need to generate text
files (mainly D source code) via a templating system. My use
case is to have some JSON data populated at runtime from an API
and fill-in placeholders in the text with t
On Thursday, 14 March 2024 at 16:42:04 UTC, dany wrote:
Hola a todos necesito conectarme a una base de datos sql y ps
no me sale :'(
quisiera saber como podria porfis, ayuda :')
import std.stdio;
import std.json;
//import std.database.mysql;
//import raylib;
import ddbc;
void main() {
On Thursday, 4 April 2024 at 18:14:54 UTC, BoQsc wrote:
I'm looking for more readable standard function to add a
**character** literal to a **string**.
The `~` operator is clearly not great while reading a source
code.
I'm not here to discuss that. I'm looking for a function inside
standard l
On Thursday, 4 April 2024 at 21:23:00 UTC, user1234 wrote:
On Thursday, 4 April 2024 at 19:56:50 UTC, Ferhat Kurtulmuş
wrote:
[...]
```d
module runnable;
import std.stdio : writeln;
import std.range : chain;
void main() @nogc
{
auto s = chain("as ", "df ", "j"); // s is lazy
writeln(
These don't work for me:
"dflags": ["-Iinclude"]
"importPaths": [
"include"
],
The importc docs do not help either.
On Saturday, 13 April 2024 at 21:21:24 UTC, Richard (Rikki)
Andrew Cattermole wrote:
On 14/04/2024 8:59 AM, Ferhat Kurtulmuş wrote:
These don't work for me:
"dflags": ["-Iinclude"]
"importPaths": [
"include"
],
The importc docs do not help either.
Appears it hasn't been documented in
On Saturday, 13 April 2024 at 21:21:24 UTC, Richard (Rikki)
Andrew Cattermole wrote:
On 14/04/2024 8:59 AM, Ferhat Kurtulmuş wrote:
These don't work for me:
"dflags": ["-Iinclude"]
"importPaths": [
"include"
],
The importc docs do not help either.
Appears it hasn't been documented in
On Saturday, 13 April 2024 at 21:39:10 UTC, Ferhat Kurtulmuş
wrote:
On Saturday, 13 April 2024 at 21:21:24 UTC, Richard (Rikki)
Andrew Cattermole wrote:
On 14/04/2024 8:59 AM, Ferhat Kurtulmuş wrote:
These don't work for me:
"dflags": ["-Iinclude"]
"importPaths": [
"include"
],
The imp
On Saturday, 13 April 2024 at 21:41:41 UTC, Ferhat Kurtulmuş
wrote:
On Saturday, 13 April 2024 at 21:39:10 UTC, Ferhat Kurtulmuş
wrote:
On Saturday, 13 April 2024 at 21:21:24 UTC, Richard (Rikki)
Andrew Cattermole wrote:
On 14/04/2024 8:59 AM, Ferhat Kurtulmuş wrote:
These don't work for me:
On Saturday, 13 April 2024 at 22:00:16 UTC, Ferhat Kurtulmuş
wrote:
On Saturday, 13 April 2024 at 21:41:41 UTC, Ferhat Kurtulmuş
wrote:
On Saturday, 13 April 2024 at 21:39:10 UTC, Ferhat Kurtulmuş
wrote:
On Saturday, 13 April 2024 at 21:21:24 UTC, Richard (Rikki)
Andrew Cattermole wrote:
[...]
On Wednesday, 17 April 2024 at 00:40:28 UTC, Alex Bryan wrote:
If you're not using gdc exclusively, you'll want to take a look
at this: https://github.com/dlang/dub/pull/2818
I knew there was something wrong there.
On Thursday, 29 August 2019 at 10:11:58 UTC, berni wrote:
Iterating of some structure and removing elements thereby is
always errorprone and should be avoided. But: In case of AA,
I've got the feeling, that it might be safe:
foreach (k,v;ways)
if (v.empty)
ways.remove(k);
Do you
On Wednesday, 4 September 2019 at 06:20:00 UTC, berni wrote:
On Tuesday, 3 September 2019 at 20:06:27 UTC, Ferhat Kurtulmuş
wrote:
I know, it is foreach loop in question. How about using a
reverse for loop like:
for (size_t i = arr.length ; i-- > 0 ; ){
arr.remove(i);
}
This would be goo
On Monday, 7 October 2019 at 17:11:08 UTC, Just Dave wrote:
I need a stack and a queue and I noticed that the standard
library doesn't appear to have one. Which is ok. I just need
something that can logically behave as a stack and queue, which
I think the dynamic array should be able to do (if
On Monday, 7 October 2019 at 17:28:11 UTC, Just Dave wrote:
On Monday, 7 October 2019 at 17:24:19 UTC, Ferhat Kurtulmuş
wrote:
On Monday, 7 October 2019 at 17:11:08 UTC, Just Dave wrote:
[...]
Built-in D arrays rely on garbage collector, and you don't
need an explicit delete. For nogc arrays
On Tuesday, 8 October 2019 at 16:28:51 UTC, Marcel wrote:
I'm been thinking about using D in conjunction with C11 to
develop a set of applications with hard real-time requirements.
While initially the goal was to use C++ instead, it has become
clear that D's introspection facilities will offer
On Tuesday, 8 October 2019 at 16:43:23 UTC, Ferhat Kurtulmuş
wrote:
On Tuesday, 8 October 2019 at 16:28:51 UTC, Marcel wrote:
I'm been thinking about using D in conjunction with C11 to
develop a set of applications with hard real-time
requirements. While initially the goal was to use C++ instea
On Friday, 18 October 2019 at 05:52:19 UTC, Prokop Hapala wrote:
Already >1 year I consider to move from C++ to Dlang or to Rust
in my hobby game development (mostly based on physical
simulations
https://github.com/ProkopHapala/SimpleSimulationEngine). I
probably prefer Dlang because it compil
On Friday, 18 October 2019 at 06:11:37 UTC, Ferhat Kurtulmuş
wrote:
On Friday, 18 October 2019 at 05:52:19 UTC, Prokop Hapala wrote:
Already >1 year I consider to move from C++ to Dlang or to
Rust in my hobby game development (mostly based on physical
simulations
https://github.com/ProkopHapal
On Sunday, 20 October 2019 at 22:48:25 UTC, Jonathan Marler wrote:
On Friday, 18 October 2019 at 06:11:37 UTC, Ferhat Kurtulmuş
wrote:
On Friday, 18 October 2019 at 05:52:19 UTC, Prokop Hapala
wrote:
Already >1 year I consider to move from C++ to Dlang or to
Rust in my hobby game development (m
On Thursday, 31 October 2019 at 03:56:56 UTC, lili wrote:
Hi:
why writeln need GC?
I cannot answer why it needs GC but something can be implemented
like:
import core.stdc.stdio;
struct Point {
int x;
int y;
}
class Person {
string name;
uint age;
}
template GenStructMem
On Thursday, 31 October 2019 at 13:46:07 UTC, Adam D. Ruppe wrote:
On Thursday, 31 October 2019 at 03:56:56 UTC, lili wrote:
Hi:
why writeln need GC?
It almost never does, it just keeps the option open in case
* it needs to throw an exception (like if stdout is closed)
* you pass it a cus
I am trying to learn behavior of postblit constructor. Below code
works as expected when I comment out malloc part of postblit
constructor. It writes 4 if malloc part of postblit constructor
is commented out. Otherwise it writes default init value of int
which is 0. I wonder how new memory is a
On Tuesday, 5 November 2019 at 10:13:59 UTC, Mike Parker wrote:
On Tuesday, 5 November 2019 at 08:47:05 UTC, Ferhat Kurtulmuş
wrote:
value of int which is 0. I wonder how new memory is allocated
without an explicit malloc here. Sorry for this noob question
in advance, I could not find any doc
On Tuesday, 5 November 2019 at 10:31:05 UTC, Ferhat Kurtulmuş
wrote:
On Tuesday, 5 November 2019 at 10:13:59 UTC, Mike Parker wrote:
[...]
Yep, it is obvious that my code is wrong. s1 and s2 point to
the same memory address. I could obtain my desired behavior
with copy constructor. The docum
On Tuesday, 5 November 2019 at 11:20:47 UTC, Mike Parker wrote:
On Tuesday, 5 November 2019 at 10:32:03 UTC, Ferhat Kurtulmuş
wrote:
On Tuesday, 5 November 2019 at 10:31:05 UTC, Ferhat Kurtulmuş
wrote:
[...]
I meant the example as an answer to your statement, "I wonder
how new memory is allo
On Tuesday, 5 November 2019 at 12:06:44 UTC, Ferhat Kurtulmuş
wrote:
On Tuesday, 5 November 2019 at 11:20:47 UTC, Mike Parker wrote:
On Tuesday, 5 November 2019 at 10:32:03 UTC, Ferhat Kurtulmuş
wrote:
[...]
I meant the example as an answer to your statement, "I wonder
how new memory is allo
On Tuesday, 5 November 2019 at 12:09:15 UTC, Ferhat Kurtulmuş
wrote:
On Tuesday, 5 November 2019 at 12:06:44 UTC, Ferhat Kurtulmuş
wrote:
On Tuesday, 5 November 2019 at 11:20:47 UTC, Mike Parker wrote:
On Tuesday, 5 November 2019 at 10:32:03 UTC, Ferhat Kurtulmuş
wrote:
[...]
I meant the exa
On Wednesday, 6 November 2019 at 09:19:04 UTC, Jonathan M Davis
wrote:
DIP:
https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1018.md
It looks like the release that added copy constructors to the
compiler was 2.086 back in May:
https://dlang.org/changelog/2.086.0.html
https://dlang
On Thursday, 31 October 2019 at 03:56:56 UTC, lili wrote:
Hi:
why writeln need GC?
Upon this post, I thought writing a gc-free writeln would be a
good learning practice. Although it is not a feature-complete
one, it was a lot of fun to do it :)
https://github.com/aferust/stringnogc
On Monday, 11 November 2019 at 16:20:59 UTC, bauss wrote:
If you wanted to follow the standard of D then you didn't need
a string type. Since it doesn't really exist in D.
string is just an alias for immutable(char)[]
And that is why std.exception.assumeUnique converts char[] to
string AKA
I was trying to make my stupid writeln2 function
(https://github.com/aferust/stringnogc/blob/master/source/stringnogc.d) compatible with betterC. writeln2() calls obParse() function which may contain some code incompatible with betterC. However; while the code in the unittest can be compiled and l
On Thursday, 14 November 2019 at 16:12:19 UTC, kinke wrote:
I can't reproduce this with LDC 1.17.0, after changing
`unittest` to `extern (C) int main()` and returning 0 at the
end; compiled & linked with `ldc2 -betterC stringnogc.d`.
I could also run the code in that way. Probably I have some
On Thursday, 14 November 2019 at 19:07:56 UTC, Marcone wrote:
Hi,
I use Dlang with QtE5 to make my programs with GUI.
If QT is is not a must, you can go for gtkd + Glade designer. I
wrote a small utility to work together with Glade and gtkd.
please note that it doesn't convert all fields of
On Thursday, 14 November 2019 at 16:47:59 UTC, kinke wrote:
The -betterC for that app doesn't imply that its dependencies
are compiled with -betterC too. So either also specify that
flag in your library's dub config, or build the app with
`DFLAGS=-betterC dub ...`.
Thank you, I added some inf
On Wednesday, 27 November 2019 at 16:16:04 UTC, René Heldmaier
wrote:
Hi,
I'm looking for some basic matrix/vector operations and other
numeric stuff.
I spent quite a lot time in reading through the mir
documentation, but i kinda miss the bigger picture. I'm not a
Python user btw. (I know C
On Sunday, 1 December 2019 at 20:05:40 UTC, Marcone wrote:
My program have Qt5 GUI that use dlls, icons, pictures, etc.
How bundles a Dlang application and all its dependencies into a
single .exe package?
There are several tools creating installers such as nsis.
However, if you want to make
On Friday, 6 December 2019 at 12:34:17 UTC, realhet wrote:
Hi,
I'm trying to use a popular function name "max", and extend it
for my special types:
For example:
module utils;
MyType max(in MyType a, in MyType a){...} //static function
struct V3f{
V3f max(in V2f b){...} //member function
On Friday, 6 December 2019 at 13:25:24 UTC, realhet wrote:
On Friday, 6 December 2019 at 13:04:57 UTC, Ferhat Kurtulmuş
wrote:
[...]
Thx for answering!
[...]
In d you can also use scoped imports:
https://dlang.org/spec/module.html#scoped_imports
Is there any built-in method returning current timestamp like
doing it in python like: time.time() which returns something like
1577990478.4675508?
On Thursday, 2 January 2020 at 18:56:37 UTC, bachmeier wrote:
On Thursday, 2 January 2020 at 18:41:59 UTC, Ferhat Kurtulmuş
wrote:
Is there any built-in method returning current timestamp like
doing it in python like: time.time() which returns something
like 1577990478.4675508?
I use
import
On Wednesday, 8 January 2020 at 19:05:29 UTC, H. S. Teoh wrote:
On Wed, Jan 08, 2020 at 06:12:01PM +, Stefan via
Digitalmars-d-learn wrote: [...]
But you can easily do the initialization in your D code, by
calling
rt_init() and rt_term(), like this:
[...]
extern(C) int rt_init();
extern(C
On Monday, 13 January 2020 at 10:28:48 UTC, mark wrote:
I'm just starting out learning D.
Andrei Alexandrescu's "The D Programming Language" is 10 years
old, so is it still worth getting? (I don't know how much D has
changed in 10 years.)
Depending on your background:
https://wiki.dlang.org
On Monday, 13 January 2020 at 11:08:45 UTC, Ferhat Kurtulmuş
wrote:
On Monday, 13 January 2020 at 10:28:48 UTC, mark wrote:
I'm just starting out learning D.
Andrei Alexandrescu's "The D Programming Language" is 10 years
old, so is it still worth getting? (I don't know how much D
has changed
On Tuesday, 21 January 2020 at 14:02:59 UTC, Ron Tarrant wrote:
Today's post was requested by Joel Christensen, how to have one
button affect another. You can find it here:
https://gtkdcoding.com/2020/01/21/0099-sfx-button-interactions-i-text-labels.html
Another useful tutorial would be someth
On Wednesday, 22 January 2020 at 21:26:40 UTC, Ron Tarrant wrote:
On Wednesday, 22 January 2020 at 09:18:51 UTC, Ferhat Kurtulmuş
wrote:
Another useful tutorial would be something using bindProperty
and/or bindPropertyWithClosures. Once I used bindProperty with
vala, but I think there is no a
On Thursday, 23 January 2020 at 12:32:57 UTC, Ron Tarrant wrote:
On Thursday, 23 January 2020 at 09:27:45 UTC, Ferhat Kurtulmuş
wrote:
I want this button disabled so that user cannot spawn another
thread while the first one is on duty.
This is actually the subject of an up-coming post which
On Thursday, 23 January 2020 at 13:41:34 UTC, Ferhat Kurtulmuş
wrote:
On Thursday, 23 January 2020 at 12:32:57 UTC, Ron Tarrant wrote:
[...]
Yes, but what if you set sensitive properties of a bunch of the
widgets in the same time. Each time you have to write and call
setSensitive() for each
On Monday, 27 January 2020 at 13:24:03 UTC, Marcone wrote:
On Monday, 27 January 2020 at 13:07:20 UTC, rumbu wrote:
[...]
Thank you very much! But I have this error when I try to
compile:
Error 42: Symbol Undefined _InitCommonControls@0
Error: linker exited with status 1
I am using Resedit
1 - 100 of 262 matches
Mail list logo