On Monday, 8 June 2020 at 14:41:55 UTC, Jan Hönig wrote:
On Sunday, 7 June 2020 at 00:45:37 UTC, Ali Çehreli wrote:
dmd -mixin= ...
thanks for the tip!
writeln(q{
void foo() {
}
});
What is the name of this `q` thing?
How do i find it? Are there any recent tutorials
On 09.06.20 20:16, Ali Çehreli wrote:
I am biased but I like my :) index of the book, where all such syntax
items appear:
https://ddili.org/ders/d.en/ix.html
Oh yeah. It's how I got the link. You might want to fix some of the
URLs, though. Characters like '{' or '[' need to be
On 6/8/20 7:50 AM, ag0aep6g wrote:
https://ddili.org/ders/d.en/literals.html#ix_literals.q%7B%7D
Thank you.
I am biased but I like my :) index of the book, where all such syntax
items appear:
https://ddili.org/ders/d.en/ix.html
Ali
On Monday, 8 June 2020 at 14:41:55 UTC, Jan Hönig wrote:
What is the name of this `q` thing?
It is just a string that looks like code.
On 08.06.20 16:45, ag0aep6g wrote:
On 08.06.20 16:41, Jan Hönig wrote:
On Sunday, 7 June 2020 at 00:45:37 UTC, Ali Çehreli wrote:
[...]
writeln(q{
void foo() {
}
});
What is the name of this `q` thing?
How do i find it? Are there any recent tutorials on it?
On 08.06.20 16:41, Jan Hönig wrote:
On Sunday, 7 June 2020 at 00:45:37 UTC, Ali Çehreli wrote:
[...]
writeln(q{
void foo() {
}
});
What is the name of this `q` thing?
How do i find it? Are there any recent tutorials on it?
https://dlang.org/spec/lex.html#token_strings
On Sunday, 7 June 2020 at 00:45:37 UTC, Ali Çehreli wrote:
dmd -mixin= ...
thanks for the tip!
writeln(q{
void foo() {
}
});
What is the name of this `q` thing?
How do i find it? Are there any recent tutorials on it?
On Sunday, 7 June 2020 at 00:45:37 UTC, Ali Çehreli wrote:
On 6/6/20 5:03 PM, FunkyD wrote:> On Saturday, 6 June 2020 at
09:57:36 UTC, Jan Hönig wrote:
> D is pretty good for meta-programming. For certain other
things it is
> terrible.
I am glad I don't know enough about other technologies to
On Sunday, 7 June 2020 at 00:45:37 UTC, Ali Çehreli wrote:
False. And again, even if so, that's not because of D, but
because of humans. Can you imagine a CTO, say, in Silicon
Valley to have guts to bring D instead of C++? With C++, the
CTO will never be blamed; but D, he or she can easily be
On 6/6/20 5:03 PM, FunkyD wrote:> On Saturday, 6 June 2020 at 09:57:36
UTC, Jan Hönig wrote:
> D is pretty good for meta-programming. For certain other things it is
> terrible.
I am glad I don't know enough about other technologies to feel that way.
> String mixins simply mix in D code. It
ot be made based on it's
metaprogramming. It will be a mistake! Now, if the only goal is
to use D for it's metaprogramming then it is an excellent
choice... although there are other languages starting to compete
with D and functional languages probably offer better overall
cohesiveness if you
On Saturday, 6 June 2020 at 09:57:36 UTC, Jan Hönig wrote:
We have two (little) student projects, which should use D for
meta-programming/code generation.
More specifically string mixins and templates.
I found this doc:
We have two (little) student projects, which should use D for
meta-programming/code generation.
More specifically string mixins and templates.
I understand (at least I think so :)) string mixins. The task is
to create a small internal DSL, which is capable of printing out
D code, which we
On Wednesday, 29 April 2015 at 02:20:25 UTC, Vladimir Panteleev
wrote:
On Wednesday, 29 April 2015 at 01:38:17 UTC, Dennis Ritchie
wrote:
Hi,
Is it possible to write self-modifying code in D, who will
perform at runtime?
Not easily. Just the obvious approach to invoke the compiler
and
On 04/28/2015 07:20 PM, Vladimir Panteleev wrote:
On Wednesday, 29 April 2015 at 01:38:17 UTC, Dennis Ritchie wrote:
Hi,
Is it possible to write self-modifying code in D, who will perform at
runtime?
Not easily. Just the obvious approach to invoke the compiler and
run/load the created
On Wednesday, 29 April 2015 at 17:35:50 UTC, Ali Çehreli wrote:
SDC will make D such a language. :)
Ali
It remains to build SDC in the standard library of the future
DDMD :)
Hi,
Is it possible to write self-modifying code in D, who will
perform at runtime? Or is it a characteristic of languages that
compile to bytecode?
On Wednesday, 29 April 2015 at 01:38:17 UTC, Dennis Ritchie wrote:
Hi,
Is it possible to write self-modifying code in D, who will
perform at runtime?
Not easily. Just the obvious approach to invoke the compiler and
run/load the created executable / shared library.
Or is it a
I'm trying to implement a template Vector and i would like to
know if this is possible.
My current vector class is:
public class Vector(T, size_t size) {
private T components[size];
}
And i would like to implement a property as this:
@property
public size_t length() const {
return
On Saturday, 19 October 2013 at 15:22:31 UTC, Agustin wrote:
I'm trying to implement a template Vector and i would like to
know if this is possible.
My current vector class is:
public class Vector(T, size_t size) {
private T components[size];
}
And i would like to implement a property as
res += components[i];
Should be res += components[i] * components[i];
21 matches
Mail list logo