On Friday, 31 May 2019 at 16:24:28 UTC, Robert M. Münch wrote:
The code is just to show the problem and not meant to compile.
I couldn't get anything to compile...
That's ok, but could you provide an example anyway? Is it like
this?
´´´
void main(){
auto target = new myClass!int();
t
On 01/06/2019 3:59 PM, Yatheendra wrote:
Hi people.
The 'version' keyword sounds like a fantastic capability, but how far
does DMD take it (and does GDC take it equally far)? This is not a "D
Improvement Proposal", I am just asking how it is now.
GDC, LDC and DMD all share the same frontend
Hi people.
The 'version' keyword sounds like a fantastic capability, but how
far does DMD take it (and does GDC take it equally far)? This is
not a "D Improvement Proposal", I am just asking how it is now.
Can code of multiple versions be compiled into the same
executable or library, and a
Its possible to call copyctor manually without calling dtor?
ex, what i did before:
struct T{ ~this(){ writeln("DTOR"); } this(this){
writeln("POSTBLIT"); } }
T a;
T b;
memcpy(&a,&b,T.sizeof);
a.__postblit;
/*
output:
POSTBLIT
DTOR
DTOR
*/
With copy ctors, not sure what to do.
struct T{
On Friday, 31 May 2019 at 19:22:03 UTC, rikki cattermole wrote:
On 01/06/2019 7:07 AM, Machine Code wrote:
is there something on std library or package on dub to get a
executable version on windows? just in case I don't need to
dig into winapi.
Like C#'s:
FileVersionInfo.GetVersionInfo(path)
On Friday, 31 May 2019 at 18:47:06 UTC, Obsidian Jackal wrote:
I'm new to D and want to create GTK+ apps. I have Visual
Studio, Glade, the Gtk+ runtime, DMD, and DUB installed. What
steps, guides, or advice should I follow to be able to be able
to use these tools together to make a sane app?.
On Friday, 31 May 2019 at 18:47:06 UTC, Obsidian Jackal wrote:
I'm new to D and want to create GTK+ apps. I have Visual
Studio, Glade, the Gtk+ runtime, DMD, and DUB installed. What
steps, guides, or advice should I follow to be able to be able
to use these tools together to make a sane app?.
On 01/06/2019 7:07 AM, Machine Code wrote:
is there something on std library or package on dub to get a executable
version on windows? just in case I don't need to dig into winapi.
Like C#'s:
FileVersionInfo.GetVersionInfo(path).FileVersion
https://docs.microsoft.com/en-us/dotnet/api/system.d
is there something on std library or package on dub to get a
executable version on windows? just in case I don't need to dig
into winapi.
Like C#'s:
FileVersionInfo.GetVersionInfo(path).FileVersion
https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.fileversioninfo.fileversion?view
I'm new to D and want to create GTK+ apps. I have Visual Studio,
Glade, the Gtk+ runtime, DMD, and DUB installed. What steps,
guides, or advice should I follow to be able to be able to use
these tools together to make a sane app?.
On Friday, 31 May 2019 at 13:49:02 UTC, KnightMare wrote:
struct Range {
private __vector(ushort) _outer;
private size_t _a, _b;
this(vector(ushort) data, size_t a, size_t b) { //
line 457
_outer = data;
_a = a;
_b = b;
}
imo problem is in strin
On 2019-05-31 11:07:00 +, Alex said:
Not sure, if I understood your problem correctly.
I can imagine... I try my best :-)
It is meant that the class myClass defines an array of myOtherClass objects?
Yes. So there is one class having an array of other stuff.
The code does not compile a
On Friday, 31 May 2019 at 08:35:23 UTC, Simen Kjærås wrote:
On Friday, 31 May 2019 at 07:17:22 UTC, Amex wrote:
What I'm talking about is that if A would be dispatched to,
say, W!X where W handles the special dispatching by returning
X_A rather than X.A.
I don't know if D can do this kinda s
On Friday, 31 May 2019 at 13:50:57 UTC, Andre Pany wrote:
You can specify the parameters also in code. See example here
https://dlang.org/changelog/2.085.0.html#gc_cleanup
I need it to apply to dmd though, I'm exceeding memory limits
when compiling. Once done the program doesn't need a whole
On Friday, 31 May 2019 at 15:31:13 UTC, kinke wrote:
On Friday, 31 May 2019 at 10:27:44 UTC, Anonymouse wrote:
$ grep dflags dub.json
"dflags": [ "-lowmem", "--DRT-gcopt=profile:1" ],
This should work indeed. I guess it doesn't because dub
probably uses a response file containing all cmdl
On Friday, 31 May 2019 at 10:27:44 UTC, Anonymouse wrote:
$ grep dflags dub.json
"dflags": [ "-lowmem", "--DRT-gcopt=profile:1" ],
This should work indeed. I guess it doesn't because dub probably
uses a response file containing all cmdline options, whereas
-lowmem definitely [and --DRT-*
On Friday, 31 May 2019 at 13:37:05 UTC, Anonymouse wrote:
On Friday, 31 May 2019 at 10:47:20 UTC, Mike Parker wrote:
On Friday, 31 May 2019 at 10:27:44 UTC, Anonymouse wrote:
What is the correct way?
--DRT flags are for run time, not compile time. They're
intended to be passed to your execu
On Friday, 31 May 2019 at 10:47:20 UTC, Mike Parker wrote:
On Friday, 31 May 2019 at 10:27:44 UTC, Anonymouse wrote:
What is the correct way?
--DRT flags are for run time, not compile time. They're
intended to be passed to your executable and not the compiler.
From the docs [1]:
"By defau
struct Range {
private __vector(ushort) _outer;
private size_t _a, _b;
this(vector(ushort) data, size_t a, size_t b) { //
line 457
_outer = data;
_a = a;
_b = b;
}
imo problem is in string
private __vector(ushort)_outer;
it looks like template(ve
On Friday, 31 May 2019 at 10:47:20 UTC, Mike Parker wrote:
On Friday, 31 May 2019 at 10:27:44 UTC, Anonymouse wrote:
What is the correct way?
--DRT flags are for run time, not compile time. They're
intended to be passed to your executable and not the compiler.
From the docs [1]:
"By defau
On Friday, 31 May 2019 at 10:35:46 UTC, Dukc wrote:
The key pair needs to be persistant between, so I made a
4096-bit private key with OpenSSL, stored in .pem file. Then I
constructed a public key from the private one, again with
OpenSSL. It seemed strange to me that I could generate a public
On Friday, 31 May 2019 at 11:20:15 UTC, KnightMare wrote:
whats wrong with answer at SO?
https://stackoverflow.com/questions/56278268/reading-dicom-files-in-dlang
dlang_wrapper.so file is created.
I try to access it with following file:
import imebra;
import imebra_im;
import core.stdc.stdio
whats wrong with answer at SO?
https://stackoverflow.com/questions/56278268/reading-dicom-files-in-dlang
Is it possible to read Dicom (https://en.wikipedia.org/wiki/DICOM
) images (which are widely used in medical field) using D
language?
Dicom specifications are given here:
https://www.dicomstandard.org/current/
There is some discussion on this topic on this page but no
details on this forum:
https://lapo.it/asn1js
but dont insert ur certificate there, generate new one for tests
On Friday, 31 May 2019 at 11:09:07 UTC, KnightMare wrote:
The reason is that if I understand the logic of Base64, it's
that each character stores 6 bits. My private key .pem has 49
lines of 64 characters worth of Base64, though the sat line
isn't full. Anyway, this is data worth of over 18000 b
The reason is that if I understand the logic of Base64, it's
that each character stores 6 bits. My private key .pem has 49
lines of 64 characters worth of Base64, though the sat line
isn't full. Anyway, this is data worth of over 18000 bits. The
RSA key is supposed to be 4096 bits, so this can'
On Thursday, 30 May 2019 at 18:34:31 UTC, Robert M. Münch wrote:
I have myClass and I want to add a way where I can provide a
delegate to iterate over myClass.objects when a member function
put(...) of myClass is called. The idea is that a user of
myClass can provide something like an "iterator
On Friday, 31 May 2019 at 10:27:44 UTC, Anonymouse wrote:
What is the correct way?
--DRT flags are for run time, not compile time. They're intended
to be passed to your executable and not the compiler. From the
docs [1]:
"By default, GC options can only be passed on the command line of
th
I need to manually sign and verify stuff with asymmetric crypto
keys. I ended up using rsa from secured.
The key pair needs to be persistant between, so I made a 4096-bit
private key with OpenSSL, stored in .pem file. Then I constructed
a public key from the private one, again with OpenSSL. It
I'm trying to tweak the GC when compiling with dub, starting with
something easy like profile:1.
$ grep dflags dub.json
"dflags": [ "-lowmem", "--DRT-gcopt=profile:1" ],
$ dub test
Doesn't work, doesn't give any extra output. Entering bogus flags
like --DRT-gcopt=banana:1 doesn't evoke a
Today's blog post covers a topic that was requested back in
mid-April, the message dialog. Some of the extra info you may
glean from today's post is:
- tracing widget inheritance to find a complete list of available
functions, and
- where to find the DialogFlags enum.
You can find it here:
On Friday, 31 May 2019 at 07:17:22 UTC, Amex wrote:
What I'm talking about is that if A would be dispatched to,
say, W!X where W handles the special dispatching by returning
X_A rather than X.A.
I don't know if D can do this kinda stuff even though it would
be rather simple as it would depen
imo for parts of names such things will never appear.. names,
subnames, overloading.. hell no
but I want Kotlin lambdas
https://kotlinlang.org/docs/reference/lambdas.html
I want more:
Function literals with receiver
it: implicit name of a single parameter
Passing a lambda to the last parameter
t
with lets one remove a direct reference...
The problem is the things I want to access are not part of a
single object but have a common naming structure:
X_A
X_B
X_C_Q
(rather than X.A, X.B, X.C.Q)
it would be very helpful(since X is long) to be able to do
something like
with(X)
{
A;
35 matches
Mail list logo