On Sunday, 16 May 2021 at 15:47:55 UTC, Adam D. Ruppe wrote:
On Sunday, 16 May 2021 at 15:12:25 UTC, Nick wrote:
Is this warning still valid?
The @property thing doesn't do much. All it does is change
typeof(a.prop) from function over to the return value of the
function. (Which actually make
The [Property
Functions](https://dlang.org/spec/function.html#property-functions) documentation reads:
WARNING: The definition and usefulness of property functions is
being reviewed, and the implementation is currently incomplete.
Using property functions is not recommended until the
definiti
On Friday, 7 May 2021 at 19:33:30 UTC, Basile B. wrote:
On Friday, 7 May 2021 at 18:07:45 UTC, Nick wrote:
The class grammar, as defined in the D language specification
...
is not clear to me how a user-defined type (such as a class or
interface) is also a 'BasicType' (as defined by the grammar
The class grammar, as defined in the D language specification
([Classes](https://dlang.org/spec/grammar.html#classes)), seems
to imply that a class can inherit from a fundamental type.
Explicitly, the specification says that a 'SuperClass' is a
'BasicType'. And a 'FundamentalType' is a 'BasicTy
On Tuesday, 30 August 2016 at 14:24:22 UTC, eugene wrote:
On Tuesday, 30 August 2016 at 13:33:44 UTC, Nick wrote:
Is it possible to compile from D to C++?
Explanation:
I do some competition programming and would like to write it
in D instead of C++ :)
maybe will help https://wiki.dlang.org/C
Is it possible to compile from D to C++?
Explanation:
I do some competition programming and would like to write it in D
instead of C++ :)
Thank you very much, this was exactly what I was looking for!
Hey folks
I'm making a vibe.d application. Once a day it needs to download
some data. How do i get the program to perform this task once a
day?
Regards, Nick
On Wednesday, 7 January 2015 at 10:56:07 UTC, bearophile wrote:
Nick:
The two nodes have the same address, is this right?
What you are printing is the address of the reference in the
stack frame of add(). If you want to print the reference you
can use this:
import std.stdio;
class Test(
When i try to run the following code
import std.stdio;
void main(){
auto a= new test!int();
a.add(0);
a.add(1);
}
class test(T){
void add(T e){
auto temp= new node();
writeln("new node", &temp);
}
class node{
10 matches
Mail list logo