Thanks Adam, H. S., max for your point of view
On Wednesday, 16 November 2022 at 23:23:48 UTC, Adam D Ruppe
wrote:
On Wednesday, 16 November 2022 at 23:16:26 UTC, H. S. Teoh
wrote:
You mean with Phobos and everything included? I think there
may be issues with that...
Yes that would be
Dear community,
I look some day ago to the D wasm page:
-> https://wiki.dlang.org/Generating_WebAssembly_with_LDC
And since then I ask myself can we at compile time convert a D
code to an extern C code for wasm ?
Indeed, if a library/framework would wrap this to let end user
write his
On Friday, 14 May 2021 at 17:38:54 UTC, Danny Arends wrote:
On Friday, 14 May 2021 at 17:29:13 UTC, evilrat wrote:
On Friday, 14 May 2021 at 16:39:53 UTC, Danny Arends wrote:
Find the GPL-v3 licensed code here:
https://github.com/DannyArends/CalderaD
You can set up platform filters in
Dear,
I would like to use OpenCL in D. Thus I try to use DerelictCL.
But I fail to use it I encounter this error message:
--
/opt/jonathan/jonathan-dlang_ldc2092/root/usr/include/d/derelict/opencl/constants.di(835):
Error: genCLVectorTypes cannot be interpreted at compile time,
On Friday, 8 November 2019 at 14:32:25 UTC, bioinfornatics wrote:
On Friday, 8 November 2019 at 08:58:36 UTC, bioinfornatics
wrote:
[...]
I do not have found yet why the line counter is false.
I can tell if the amount to read imply that the last read is
not not strictly equal to the buffer
On Friday, 8 November 2019 at 08:58:36 UTC, bioinfornatics wrote:
the error message was understandable to me,
... the error message was not understandable to me ...
I do not have found yet why the line counter is false.
I can tell if the amount to read imply that the last read is not
not
On Friday, 8 November 2019 at 01:12:37 UTC, Ali Çehreli wrote:
On 11/07/2019 07:07 AM, bioinfornatics wrote:
> Dear,
>
> I try to use the async buffer describe into std.parallelism
> documentation but my test code core dump!
I admit I don't fully understand the lifetime issues but
removing the
the error message was understandable to me,
... the error message was not understandable to me ...
Dear,
I try to use the async buffer describe into std.parallelism
documentation but my test code core dump!
documentation:
https://dlang.org/phobos/std_parallelism.html#.TaskPool.asyncBuf.2
snipptet:
https://paste.fedoraproject.org/paste/K5W1O1dLzZ0sPV8NeGztUg
Trace:
$ gdb test
(gdb) r
On Tuesday, 5 November 2019 at 00:07:40 UTC, bioinfornatics wrote:
On Tuesday, 5 November 2019 at 00:04:05 UTC, bioinfornatics
wrote:
On Monday, 4 November 2019 at 22:19:29 UTC, bioinfornatics
wrote:
On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics
wrote:
On Monday, 4 November 2019
On Tuesday, 5 November 2019 at 00:04:05 UTC, bioinfornatics wrote:
On Monday, 4 November 2019 at 22:19:29 UTC, bioinfornatics
wrote:
On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics
wrote:
On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics
wrote:
[...]
One image reveals
On Monday, 4 November 2019 at 22:19:29 UTC, bioinfornatics wrote:
On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics
wrote:
On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics
wrote:
Dear,
I would like to put a buffer `shared(char[])` into a shared
memory ( L2 cache ) and
On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics wrote:
On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics
wrote:
Dear,
I would like to put a buffer `shared(char[])` into a shared
memory ( L2 cache ) and provide a start and end index to
multiple thread in order to perform
On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics wrote:
Dear,
I would like to put a buffer `shared(char[])` into a shared
memory ( L2 cache ) and provide a start and end index to
multiple thread in order to perform computation on a piece of
original buffer.
[...]
One image
Dear,
I would like to put a buffer `shared(char[])` into a shared
memory ( L2 cache ) and provide a start and end index to multiple
thread in order to perform computation on a piece of original
buffer.
I read doc from std.concurrency, std.parallelism, core.thead
(druntime) and
On Wednesday, 30 October 2019 at 22:26:41 UTC, Mike Wey wrote:
On 30-10-2019 20:17, Ron Tarrant wrote:
[...]
Thanks.
[...]
The installer could use an update, Sourceview 4 is available
for windows.
[...]
For windows there isn't an easy command to regenerate the
source, but running
Dear,
I tried the latest gtkd release and it try to open dynamically
libgtksourceview-4.so.0 however I have only
libgtksourceview-3.so.1
so which version should I used to be compatible with
libgtksourceview-3 (I use centos 7)
Code:
$ ldc2 container_014_10_notebook_basic.d
On Thursday, 26 September 2019 at 10:07:34 UTC, bioinfornatics
wrote:
On Wednesday, 25 September 2019 at 17:03:51 UTC, Ron Tarrant
wrote:
On Wednesday, 25 September 2019 at 13:52:48 UTC,
bioinfornatics wrote:
I think I misunderstood your need but are lo looking for dub
tool with its
On Wednesday, 25 September 2019 at 17:03:51 UTC, Ron Tarrant
wrote:
On Wednesday, 25 September 2019 at 13:52:48 UTC, bioinfornatics
wrote:
I think I misunderstood your need but are lo looking for dub
tool with its repository https://code.dlang.org/
I don't think so, but I could be wrong. I
On Wednesday, 25 September 2019 at 11:46:04 UTC, Ron Tarrant
wrote:
Hi y'all,
I've been Googling how to do this, but coming up with nothing
definitive. Are there any articles for how to do this for:
Windows?
Linux?
other UNIX-alike OSs?
I think I misunderstood your need but are lo looking
On Sunday, 14 October 2018 at 12:14:06 UTC, bioinfornatics wrote:
Dear,
Some projects seem to have an extra directory for their include
directory, such as:
- stdx-allocator
- containers
- msgpack
- dparse
...
[...]
up
Dear,
Some projects seem to have an extra directory for their include
directory, such as:
- stdx-allocator
- containers
- msgpack
- dparse
...
To draw the picture, I take as example the containers project and
build using meson:
$ ls /usr/include/d/containers/containers/
cyclicbuffer.d
On Saturday, 14 July 2018 at 06:02:37 UTC, Mike Parker wrote:
Thanks to the sponsorship of Symmetry Investments, the D
Language Foundation is happy to announce the Symmetry Autumn of
Code!
We're looking for three university students to hack on D this
autumn, from September - January. We're
On Wednesday, 1 August 2018 at 13:49:30 UTC, bioinfornatics wrote:
On Tuesday, 31 July 2018 at 02:30:12 UTC, Walter Bright wrote:
I'm trying to pin down an accurate timeline of D
ldc2 compiler and D environnment language was introduce in
fedora 16 (2011)
On Tuesday, 31 July 2018 at 02:30:12 UTC, Walter Bright wrote:
I'm trying to pin down an accurate timeline of D
ldc2 compiler and D environnment language was introduce in fedora
16 (2011)
https://fedoraproject.org/wiki/Features/D2_programming
On Thursday, 10 May 2018 at 07:25:32 UTC, Nicholas Wilson wrote:
On Thursday, 10 May 2018 at 00:10:07 UTC, H Paterson wrote:
On Wednesday, 9 May 2018 at 23:37:14 UTC, Henry Gouk wrote:
On Wednesday, 9 May 2018 at 23:26:19 UTC, H Paterson wrote:
Hello,
I'm interested in writing a module for
On Thursday, 10 May 2018 at 23:22:02 UTC, Steven Schveighoffer
wrote:
OK, so at dconf I spoke with a few very smart guys about how I
can use mmap to make a zero-copy buffer. And I implemented this
on the plane ride home.
However, I am struggling to find a use case for this that
showcases why
On Thursday, 3 May 2018 at 15:30:28 UTC, rikki cattermole wrote:
On 04/05/2018 3:27 AM, bioinfornatics wrote:
[...]
dub doesn't do platform specific installing.
It just handles building. What you want is out of scope and has
been discussed.
Ok but as all D projects can be built only with
Dear,
As 99% of d project use dub as build and package manager. I would
like to know how to use D libraries and D software shared to all
user on linux architecture ?
When I run:
dub fetch
A .dub directory is created into $HOME. I tried to provide
another directory with --root parameter
Dear,
After to build the llvm lib from
https://github.com/thewilsonator/llvm . I tried to build ldc2
with v1.9-beta1
/ldc2-1.9/tools/ldc-profdata/llvm-profdata-5.0.cpp:175:6: error:
no matching function for call to
On Thursday, 26 April 2018 at 23:06:54 UTC, Nicholas Wilson wrote:
On Thursday, 26 April 2018 at 22:51:59 UTC, bioinfornatics
wrote:
Dear,
Dcompute: https://github.com/libmir/dcompute need a SPIRV
capable LLVM.
For this Dcompute project show
https://github.com/thewilsonator/llvm as a SPIRV
Dear,
Dcompute: https://github.com/libmir/dcompute need a SPIRV capable
LLVM.
For this Dcompute project show
https://github.com/thewilsonator/llvm as a SPIRV capable LLVM.
But it is not an official llvm source, moreover the source is
outdated. Indeed it provide LLVM 5.0.0 while the current
On Thursday, 5 April 2018 at 18:30:30 UTC, WebFreak001 wrote:
Hi guys, I am going to make a game for this years linux game
jam hosted by TheLinuxGamer again, last year I made SpaceD[1]
Just in case anyone else wants to join too, the link is here
(though joining is optional I think)
On Monday, 19 June 2017 at 12:46:16 UTC, Nicholas Wilson wrote:
On Monday, 19 June 2017 at 08:24:09 UTC, bioinfornatics wrote:
[...]
The library enables you to launch kernels written with the
accompanying complier extensions (the focus of this
announcement). It also provides the intrinsics
On Thursday, 18 June 2015 at 08:05:48 UTC, John Colvin wrote:
This appears to have involvement from all major browser
vendors, which provides hope it might actually catch on
properly. An llvm backend will be created which will compile to
"wasm", hopefully LDC and/or SDC could glue to this.
On Monday, 29 May 2017 at 09:33:05 UTC, Nicholas Wilson wrote:
Hi all,
I'm happy to announce that the dcompute modifications to LDC
are now in the master branch of LDC. The dcompute extensions
require LLVM 3.9.1 or greater for NVPTX/CUDA and my fork[1] of
LLVM for SPIRV.
Someone (sorry
Dear,
I use FieldTypeTuple and FieldNameTuple to get type and
correponding field name but I fail to loop over these tuple.
As example:
struct Person{
private string name;
private ushort age;
private bool isMale;
this(string name, ushort age, bool isMale){
On Tuesday, 27 October 2015 at 22:53:35 UTC, Ali Çehreli wrote:
On 10/27/2015 03:34 PM, bioinfornatics wrote:
> I use FieldTypeTuple and FieldNameTuple to get type and
correponding
> field name but I fail to loop over these tuple.
You can use the .tupleof property and a compile-time foreach:
On Sunday, 11 October 2015 at 13:27:12 UTC, Idan Arye wrote:
On Friday, 9 October 2015 at 18:10:59 UTC, tim wrote:
[...]
I doubt it'll be a good idea. These bundles seem to target
areas of interest, never specific languages. You can see
bundles geared towards graphic designers or gamers,
On Sunday, 6 September 2015 at 07:34:36 UTC, ParticlePeter wrote:
I am working on a struct vector. The data is stored in a member
static array and I want to be able to forward all array
properties except length to vector.
Reason is I have free functions f that take vector(s) as
arguments, such
That is not exactly what I requested years ago ---
http://forum.dlang.org/thread/1330792937.10754.7.camel@jonathan
Good news,
little question as ddmd generate a code does this means that ddmd
backend and frontend is full open source under boost license?
regards
On Tuesday, 7 April 2015 at 22:58:44 UTC, weaselcat wrote:
Hi, I hope nobody minds but I'm just curious as to the
popularity amongst D IDEs for a blog post. Sorry if I forgot
your favorite $editor.
http://goo.gl/forms/MmsuInzDL0
thanks : )
It seem now intellij support D lang.
I use it for
On Friday, 3 April 2015 at 10:18:11 UTC, Russel Winder wrote:
Chapel 1.11 just got release and they are making a big play on
the
integration of Chapel with Python. This could be huge and
potentially
disrupt the complacency of the NumPy based folk.
Chapel is a rather pleasant PGAS language
Little ping I hope an answer about IO in D and disruptor form
java world
Disruptor seem to provide a smart implementation between IO and
their buffer.
What did you think about it?
D could to provided a high level way to process efficiently a
file. (using Range, forwardrange ... will be
Congratz Andrei and Sanda
Java has disruptor to provide the fatest way to ring file.
website: http://lmax-exchange.github.io/disruptor/
technical information:
http://lmax-exchange.github.io/disruptor/files/Disruptor-1.0.pdf
What about hugepagesize system on LINUX ?
Dear,
I would like to know if D dev have a plan with vulkan :
https://www.khronos.org/vulkan/ ?
D lang will be at same level than others language, nothing exists
!
D could try to provide API and an environment around vulkan. To
become a language need to be used in this field.
Regards
They are MakefileForD
https://github.com/bioinfornatics/MakefileForD
It is easy to use. You have only to set First lines:
export PROJECT_NAME =
export AUTHOR =
export DESCRIPTION =
export VERSION=
export LICENSE=
ROOT_SOURCE_DIR =
EXE_NAME =
and that will find automatically
I can do this
import std.variant;
struct Alpha {
Variant something;
this(Variant v){
something = v;
}
static Alpha build(T)(T v){
return Alpha( cast(Variant)v );
}
}
void main(){
auto a =
On Tuesday, 27 January 2015 at 21:00:16 UTC, Justin Whear wrote:
On Tue, 27 Jan 2015 20:46:59 +, bioinfornatics wrote:
void main(){
auto a = Alpha!(int)( 6);
auto b = Alpha!(string)( hello);
The Alpha struct is not a template, only the constructor is.
Remove the
Dear that do a lot time wehere I not used std.variant. i would
like to hide extra cast from user by using a generic ctor
import std.variant;
struct Alpha {
Variant something;
this(T)(T v){
something = cast(Variant)v;
}
}
void main(){
Hi, I am a fedora packager.
I packaged libraries for fedora using a makefile, cmake and other
but not dub.
I will not use dub until they support makefile. I have no time to
add this feature and it seem we have all same problem :-).
Using scons is fine to me, I could package it.
If you want to
Thanks I will try it. It seems really cool. Maybe my new
favorite language.
On Tuesday, 30 December 2014 at 18:04:06 UTC, Andrei Alexandrescu
wrote:
With
https://github.com/D-Programming-Language/dlang.org/pull/736,
beautiful PDF generation via LaTeX is now possible.
There are, of course, many details to tend to. For starters,
currently the doc is overly sparse,
I think in, out, inout and scope should go. Make all
parameters that are by-value immutable by default.
I agree with this. In more that could to be interesting if
compiler could translate in to something like const scope
ref when it is an array or heavy object. to save memory
allocation and
On Saturday, 20 December 2014 at 20:14:21 UTC, Ola Fosheim
Grøstad wrote:
On Saturday, 20 December 2014 at 17:40:06 UTC, Martin Nowak
wrote:
Just wondering what the general sentiment is.
I think the main problem is what is there already, which
prevents more sensible performance features from
On Monday, 15 December 2014 at 01:30:00 UTC, Dicebot wrote:
On Sunday, 14 December 2014 at 08:37:36 UTC, Manu via
Digitalmars-d wrote:
We were trying to use vibe.d, and we encountered bugs.
We were unable to build Win64 code ...
Here is exactly your problem - trying to do a web development
they are in same way mmfile module which is deprecated since many
years, xml was in same case
Dear,
My topic is a kick in the anthill. I hope this will help D to
think on his problems.
D exist since 1999, if we look behind, what is done?
We have :
- a huge cemetery of D project
- no D killer application
- miss the goal what to do to improve D experience
- each new D release your
about Dub, I have another view.
This build system was created for end user to get a missing
library when they want their killer application. As is done with
PyPI or gem.
Dub to me is not a builder for developer and even less for an OS.
dub install software in home user a la windows style. I
please stop with this dub
It do not respect OS specification
Is a monolith application,inside they are at least 3 kinds of
software:
- a builder
- a package manager
- a package indexer
In any case the :
- no respect of OS specification and standard path
- any discussion with OS
How do you intend to provide build tools and package
distribution that work across all OS?
split dub in smaller project as this packager could integrate
tools inside Os themself.
python with his setup.py is to me a nice win
with it packager can configure it to fit right on Os
end user
On Thursday, 18 December 2014 at 14:32:03 UTC, Dicebot wrote:
On Thursday, 18 December 2014 at 13:48:27 UTC, bioinfornatics
wrote:
please stop with this dub
It do not respect OS specification
Is a monolith application,inside they are at least 3 kinds of
software:
- a builder
- a package
So now you are making Python a dependency.
Besides porting D to a new platform, Python must also be ported.
Yes, there are computer systems without Python support.
What ?
I took an example what is done in a close field .
I haven't said to put python as dependencies ...
On Thursday, 18 December 2014 at 14:46:33 UTC, Dicebot wrote:
How one can consider pip a good thing for packaging and blame
dub at the same time is beyond my comprehensions. I have
nothing but hatred against both pip and gems.
You missed the point:
- to me dub is a pip like
but in python
- I want a gui toolkit that is accelerated e.g. OpenGL.
- That can be layered drawn on top of other OpenGL content.
- Completely configurable at runtime e.g. change of shaders.
- Centralized themeing.
- That works on all major platforms without heartache.
But here's the thing about guis in
On Tuesday, 4 November 2014 at 22:06:03 UTC, Ali Çehreli wrote:
On 11/04/2014 01:58 PM, bioinfornatics wrote:
test.d(40): Error: type Section!((letter) = letter == '',
(letter) = letter == '\x0a') has no value
You have this line:
@Section!(/* ... */)
Although that is a type name, there
On Wednesday, 5 November 2014 at 21:57:42 UTC, bioinfornatics
wrote:
On Tuesday, 4 November 2014 at 22:06:03 UTC, Ali Çehreli wrote:
On 11/04/2014 01:58 PM, bioinfornatics wrote:
test.d(40): Error: type Section!((letter) = letter == '',
(letter) = letter == '\x0a') has no value
You have
Dear,
maybe I'm too tired to see my errors or they are a bug. See below
I have this:
.
|-- fasta.d
`-- src
`-- nicea
|-- metadata.d
|-- parser.d
`-- range.d
when I try to build it:
$ dmd -I./src/ ./fasta.d 21
fasta.o:(.rodata+0x1f8): undefined reference to
On Wednesday, 5 November 2014 at 23:53:57 UTC, Ali Çehreli wrote:
On 11/05/2014 03:48 PM, bioinfornatics wrote:
Dear,
maybe I'm too tired to see my errors or they are a bug. See
below
I have this:
.
|-- fasta.d
`-- src
`-- nicea
|-- metadata.d
|-- parser.d
On Tuesday, 4 November 2014 at 00:32:52 UTC, bioinfornatics wrote:
On Monday, 3 November 2014 at 23:53:53 UTC, bioinfornatics
wrote:
Dear,
why this code fail to build http://dpaste.dzfl.pl/8ef3898b05d2
?
I try to have a structure which is used to fill information
from
a file.
And I use
On Monday, 3 November 2014 at 06:43:50 UTC, Ali Çehreli wrote:
On 11/02/2014 04:58 PM, bioinfornatics wrote:
Dear,
Some problem to build this code:
http://fpaste.org/147327/75948141/
$ ldc2 fasta_test.d
/usr/include/d/std/range.d(3605): Error: template
std.array.save
cannot deduce
On Monday, 3 November 2014 at 21:03:51 UTC, bioinfornatics wrote:
On Monday, 3 November 2014 at 06:43:50 UTC, Ali Çehreli wrote:
On 11/02/2014 04:58 PM, bioinfornatics wrote:
Dear,
Some problem to build this code:
http://fpaste.org/147327/75948141/
$ ldc2 fasta_test.d
Dear,
why this code fail to build http://dpaste.dzfl.pl/8ef3898b05d2 ?
I try to have a structure which is used to fill information from
a file.
And I use UDA to tell : to get this field you need to read from x
to y using a delegate.
thanks for your advise
On Monday, 3 November 2014 at 23:53:53 UTC, bioinfornatics wrote:
Dear,
why this code fail to build http://dpaste.dzfl.pl/8ef3898b05d2 ?
I try to have a structure which is used to fill information from
a file.
And I use UDA to tell : to get this field you need to read from
x
to y using a
Dear,
Some problem to build this code:
http://fpaste.org/147327/75948141/
$ ldc2 fasta_test.d
/usr/include/d/std/range.d(3605): Error: template std.array.save
cannot deduce function from argument types !()(ByChunk),
candidates are:
/usr/include/d/std/array.d(554):std.array.save(T)(T[]
Thanks for your works,
One question, what about makefile support ?
Regards
On Monday, 6 October 2014 at 18:15:08 UTC, Sönke Ludwig wrote:
Am 06.10.2014 13:36, schrieb bioinfornatics:
Thanks for your works,
One question, what about makefile support ?
Regards
It's still in need for a volunteer. The implementation itself
should be pretty straightforward (by
Hi,
I have a linux network and i would like to know if they are a D
library to communicate between computer efficiently.
I do not know if that is better to use websocket and if they
exists into dlang:
-
http://planet.jboss.org/post/rest_vs_websocket_comparison_and_benchmarks
Thanks for
On Friday, 27 June 2014 at 13:03:20 UTC, John Colvin wrote:
On Friday, 27 June 2014 at 12:51:45 UTC, bioinfornatics wrote:
Hi,
I have a linux network and i would like to know if they are a
D library to communicate between computer efficiently.
I do not know if that is better to use
On Friday, 27 June 2014 at 13:02:55 UTC, Adam D. Ruppe wrote:
On Friday, 27 June 2014 at 12:51:45 UTC, bioinfornatics wrote:
I do not know if that is better to use websocket and if they
exists into dlang:
you could use websocket in D but if you are talking between two
separate D programs you
On Thursday, 5 June 2014 at 06:40:17 UTC, Walter Bright wrote:
On 6/4/2014 9:25 AM, Iain Buclaw via Digitalmars-d wrote:
This likewise gdc too. All you need to do is look at the
downloads
page on dlang.org !
It still says nothing about doing:
sudo apt-get install gdc
on Ubuntu! Why
On Wednesday, 4 June 2014 at 00:07:35 UTC, Jesse Phillips wrote:
On Tuesday, 3 June 2014 at 22:10:06 UTC, bioinfornatics wrote:
I do not see why it fail in debug output we see that tuple
have a
field with given name.
Your generated output (short and formatted)
alias TL = Tuple!(int,x,
On Wednesday, 4 June 2014 at 00:07:35 UTC, Jesse Phillips wrote:
On Tuesday, 3 June 2014 at 22:10:06 UTC, bioinfornatics wrote:
I do not see why it fail in debug output we see that tuple
have a
field with given name.
Your generated output (short and formatted)
alias TL = Tuple!(int,x,
On Monday, 2 June 2014 at 23:27:03 UTC, Meta wrote:
On Monday, 2 June 2014 at 22:18:39 UTC, bioinfornatics wrote:
Hi,
I would like store the delegate to another var but when i try i
get:
testTraitsWithDelegate.d(13): Error: expression template
__lambda2 is void and has no value
I do not
On Tuesday, 3 June 2014 at 12:27:45 UTC, bioinfornatics wrote:
On Monday, 2 June 2014 at 23:27:03 UTC, Meta wrote:
On Monday, 2 June 2014 at 22:18:39 UTC, bioinfornatics wrote:
Hi,
I would like store the delegate to another var but when i try
i
get:
testTraitsWithDelegate.d(13): Error:
On Tuesday, 3 June 2014 at 15:00:05 UTC, Ali Çehreli wrote:
On 06/03/2014 05:57 AM, bioinfornatics wrote:
On Tuesday, 3 June 2014 at 12:27:45 UTC, bioinfornatics wrote:
I would like store the delegate to another var but when i
try i
get:
testTraitsWithDelegate.d(13): Error: expression
delegate has a context pointer that it uses when executing
at run-time. However, there can't be a run-time context of a
delegate that is created at compile-time. I think that is why
the segfault.
Is there a reason why it needs to be a delegate?
Replacing every 'delegate' with 'function'
Hi,
I would like store the delegate to another var but when i try i
get:
testTraitsWithDelegate.d(13): Error: expression template
__lambda2 is void and has no value
I do not want to run it only to save the «function» somewhere.
--- CODE
import std.stdio;
import
Hi,
All is in the title.
I need this to do a tupleof enhanced, that mean:
- .tupleof need an instance me i want to do this on type
diretcly
- .tupleof do not bind to member name i need this
for this i strat to this code:
import std.stdio;
import std.typecons;
import std.conv;
struct
On Sunday, 1 June 2014 at 13:34:20 UTC, bioinfornatics wrote:
Hi,
All is in the title.
I need this to do a tupleof enhanced, that mean:
- .tupleof need an instance me i want to do this on type
diretcly
- .tupleof do not bind to member name i need this
for this i strat to this code:
On Sunday, 1 June 2014 at 13:52:27 UTC, Tobias Pankrath wrote:
Maybe http://dlang.org/property.html#stringof helps.
yes that help a lot thanks
I bam close to be done
import std.stdio;
import std.typecons;
import std.conv;
struct Coord
{
int x;
int y;
int z;
}
template toTuple(T){
static string maker(){
string statement = alias Tuple!(;
foreach(const memberName; __traits(allMembers, T)){
On Sunday, 1 June 2014 at 13:58:03 UTC, bioinfornatics wrote:
On Sunday, 1 June 2014 at 13:52:27 UTC, Tobias Pankrath wrote:
Maybe http://dlang.org/property.html#stringof helps.
yes that help a lot thanks
End of spam ( joke ^^)
I found it :-)
import std.stdio;
import std.typecons;
import
DMD (dmdfe 2.066) fail when i use UDA which store a delegate
code below works if i remove @section UDA otheswise it give this
error:
dmd: statement.c:714: ErrorStatement::ErrorStatement(): Assertion
`global.gaggedErrors || global.errors' failed.
is a bug ?
--- CODE also on dpaste
On Sunday, 1 June 2014 at 16:02:47 UTC, bioinfornatics wrote:
DMD (dmdfe 2.066) fail when i use UDA which store a delegate
code below works if i remove @section UDA otheswise it give this
error:
dmd: statement.c:714: ErrorStatement::ErrorStatement():
Assertion
`global.gaggedErrors ||
stupid me bug was at the end
a[0] = 1;
become
a[0] = 1;
but error error was so stnange to me i though that was a bug
Hi i am looking how to perform this action with traits. Below
some code to show what it fail
Regards
CODE
import std.traits : isDelegate, isSomeFunction,
MemberFunctionsTuple, ParameterIdentifierTuple;
struct section( alias start, alias end )
{
alias checkStart = start;
1 - 100 of 117 matches
Mail list logo