On 16/05/2014 4:59 p.m., Taylor Hillegeist wrote:
The subject says it all really. i have this example:
import core.memory;
class fruit{
int value=5;
public int getvalue(){
return value;
}
}
int main(string[] args) {
GC.disable;
static fruit myfruit;
return myfruit.
On 16/05/14 06:59, Taylor Hillegeist wrote:
The subject says it all really. i have this example:
import core.memory;
class fruit{
int value=5;
public int getvalue(){
return value;
}
}
int main(string[] args) {
GC.disable;
static fruit myfruit;
return myfruit.getval
On 15/05/14 23:27, Tom Browder via Digitalmars-d-learn wrote:
I am a volunteer developer with the well-known 3D CAD FOSS project BRL-CAD:
http://brlcad.org
I have wanted to use D for a long time but I hadn't taken the plunge.
Yesterday I advertised to the BRL-CAD community my new project to
On 05/15/2014 09:59 PM, Taylor Hillegeist wrote:
The subject says it all really. i have this example:
import core.memory;
class fruit{
int value=5;
public int getvalue(){
return value;
}
}
int main(string[] args) {
GC.disable;
static fruit myfruit;
return myfruit.g
On Friday, 16 May 2014 at 04:59:46 UTC, Taylor Hillegeist wrote:
The subject says it all really. i have this example:
import core.memory;
class fruit{
int value=5;
public int getvalue(){
return value;
}
}
int main(string[] args) {
GC.disable;
static fruit myfruit;
return
The subject says it all really. i have this example:
import core.memory;
class fruit{
int value=5;
public int getvalue(){
return value;
}
}
int main(string[] args) {
GC.disable;
static fruit myfruit;
return myfruit.getvalue();
}
Most of the smart people will see that i wa
read through
your Wiki posting though. One thing that came to mind was
you used GMake.
Perhaps you should consider using DUB. For example here is
the DUB config
file for one of my library bindings (in my case I used a
static library
though):
...
Thanks, Craig, I'll look into dub.
Best re
On Friday, 16 May 2014 at 01:11:52 UTC, Kapps wrote:
On Friday, 16 May 2014 at 01:07:28 UTC, Kapps wrote:
On Friday, 16 May 2014 at 00:23:00 UTC, Jack wrote:
I recently downloaded Xamarin Studio from the Mono-Develop
site(as this was the only available installer on that site)
and was looking t
On Thu, May 15, 2014 at 8:24 PM, Craig Dillabaugh via
Digitalmars-d-learn wrote:
> On Friday, 16 May 2014 at 01:16:46 UTC, Craig Dillabaugh wrote:
>> On Thursday, 15 May 2014 at 22:25:47 UTC, Tom Browder via
>> Digitalmars-d-learn wrote:
...
>>> What I have not seen yet is the exact way to build a
On Friday, 16 May 2014 at 01:16:46 UTC, Craig Dillabaugh wrote:
On Thursday, 15 May 2014 at 22:25:47 UTC, Tom Browder via
Digitalmars-d-learn wrote:
I am a volunteer developer with the well-known 3D CAD FOSS
project BRL-CAD:
http://brlcad.org
I have wanted to use D for a long time but I hadn
On Thursday, 15 May 2014 at 22:25:47 UTC, Tom Browder via
Digitalmars-d-learn wrote:
I am a volunteer developer with the well-known 3D CAD FOSS
project BRL-CAD:
http://brlcad.org
I have wanted to use D for a long time but I hadn't taken the
plunge.
Yesterday I advertised to the BRL-CAD comm
On Friday, 16 May 2014 at 01:07:28 UTC, Kapps wrote:
On Friday, 16 May 2014 at 00:23:00 UTC, Jack wrote:
I recently downloaded Xamarin Studio from the Mono-Develop
site(as this was the only available installer on that site)
and was looking to try out Mono-D.
Then this showed up: http://puu.sh
On Friday, 16 May 2014 at 00:23:00 UTC, Jack wrote:
I recently downloaded Xamarin Studio from the Mono-Develop
site(as this was the only available installer on that site) and
was looking to try out Mono-D.
Then this showed up: http://puu.sh/8NV4V.png
Was wondering where I can get those depend
I recently downloaded Xamarin Studio from the Mono-Develop
site(as this was the only available installer on that site) and
was looking to try out Mono-D.
Then this showed up: http://puu.sh/8NV4V.png
Was wondering where I can get those dependencies, or how to solve
this particular problem... T
On Thursday, May 15, 2014 08:21:41 PM JR via Digitalmars-d-learn wrote:
> On Thursday, 15 May 2014 at 18:15:46 UTC, Charles Hixson via
>
> Digitalmars-d-learn wrote:
> > Duration can be specified in nanoseconds, but does it make any
> > sense
> > to have a value of 1 nanosecond? 0?
> >
> > My de
I am a volunteer developer with the well-known 3D CAD FOSS project BRL-CAD:
http://brlcad.org
I have wanted to use D for a long time but I hadn't taken the plunge.
Yesterday I advertised to the BRL-CAD community my new project to
attempt to create D bindings for BRL-CAD's C libraries, and I cre
Ali Çehreli:
I don't think that should even be allowed. C functions should
not know or be compatible with 'ref' D parameters. Define the
arguments as simple 'double *' or 'const double *'.
Time ago I suggested something like that, that is not meaningful
to accept extern(C) function signature
That worked a treat! Thank you very much!
On Thursday, 15 May 2014 at 21:11:54 UTC, Ali Çehreli wrote:
On 05/15/2014 01:55 PM, Andrew Brown wrote:
> extern(C) {
>void regress(int nInd, int nCov, ref double[] x, ref
double[] y, ref
> double[] rOut);
> }
I don't think that should even be allo
On 05/15/2014 01:55 PM, Andrew Brown wrote:
> extern(C) {
>void regress(int nInd, int nCov, ref double[] x, ref double[] y, ref
> double[] rOut);
> }
I don't think that should even be allowed. C functions should not know
or be compatible with 'ref' D parameters. Define the arguments as simpl
I'm trying to calculate residuals after fitting linear
regression, and I've got some code in C using the gsl which
should do it. Everything works fine if I use static arrays
(below, defining X[15], y[5] etc.). Trouble is, I won't know the
number of individuals or covariates until runtime, so I'
On Thursday, 15 May 2014 at 17:46:52 UTC, Steven Schveighoffer
wrote:
As far as I'm concerned, if we *can* do it in n.log(n), and
somebody provides the implementation, then there is no reason
to not offer dchar sorting for char[]/wchar.
I think there is nothing wrong with requiring the steps t
On Thursday, 15 May 2014 at 19:02:58 UTC, Mengu wrote:
On Thursday, 15 May 2014 at 17:30:22 UTC, Gary Willoughby wrote:
On Wednesday, 14 May 2014 at 21:23:02 UTC, DaveG wrote:
tkd\window\window.d(426): Error: undefined identifier
CommandCallback
Added the missing import and now all works fine
On Thursday, 15 May 2014 at 18:15:46 UTC, Charles Hixson via
Digitalmars-d-learn wrote:
Duration can be specified in nanoseconds, but does it make any
sense
to have a value of 1 nanosecond? 0?
My desire is to check whether a message is in the queue, and
then
either move it local to the threa
On Thursday, 15 May 2014 at 17:30:22 UTC, Gary Willoughby wrote:
On Wednesday, 14 May 2014 at 21:23:02 UTC, DaveG wrote:
tkd\window\window.d(426): Error: undefined identifier
CommandCallback
Added the missing import and now all works fine. Fixed in
v1.0.5-beta. Any more issues open them up in
Am 13.05.2014 21:53, schrieb Tim Holzschuh via Digitalmars-d-learn:
[...]
Thank you for all your interesing links and tips, I'll check these out!
Tim
Duration can be specified in nanoseconds, but does it make any sense
to have a value of 1 nanosecond? 0?
My desire is to check whether a message is in the queue, and then
either move it local to the thread, or continue, depending.
Secondarily, is there much overhead in calling receiveTimeout
On Thursday, 15 May 2014 at 17:30:22 UTC, Gary Willoughby wrote:
On Wednesday, 14 May 2014 at 21:23:02 UTC, DaveG wrote:
tkd\window\window.d(426): Error: undefined identifier
CommandCallback
Added the missing import and now all works fine. Fixed in
v1.0.5-beta. Any more issues open them up in
On Thu, 15 May 2014 11:37:07 -0400, monarch_dodra
wrote:
On Thursday, 15 May 2014 at 13:26:45 UTC, Steven Schveighoffer
wrote:
On Wed, 14 May 2014 05:13:42 -0400, Jonathan M Davis via
Digitalmars-d-learn wrote:
On Wed, 14 May 2014 08:27:45 +
monarch_dodra via Digitalmars-d-learn
wr
On Wednesday, 14 May 2014 at 21:23:02 UTC, DaveG wrote:
tkd\window\window.d(426): Error: undefined identifier
CommandCallback
Added the missing import and now all works fine. Fixed in
v1.0.5-beta. Any more issues open them up in github and i'll deal
with them there. :)
https://github.com/no
On Thursday, 15 May 2014 at 09:00:13 UTC, bearophile wrote:
This task asks for an basic implementation of the the
Lempel-Ziv-Welch (LZW) compression/decompression algorithm. I
am keeping two D versions, the first one is minimal, and the
second is a little more optimized:
http://rosettacode.org
On Thursday, 15 May 2014 at 11:51:38 UTC, Daniel Murphy wrote:
This version seems to compile - the new manger can't handle
extern(C++) functions with D arrays as arguments or return
types.
Ok, i can understand that, but what about this one:
http://dpaste.dzfl.pl/6a9961e32e6d
It doesn't use d ar
On Thursday, 15 May 2014 at 13:26:45 UTC, Steven Schveighoffer
wrote:
On Wed, 14 May 2014 05:13:42 -0400, Jonathan M Davis via
Digitalmars-d-learn wrote:
On Wed, 14 May 2014 08:27:45 +
monarch_dodra via Digitalmars-d-learn
wrote:
As a matter of fact, the built in "sort" property does it
On Wednesday, 14 May 2014 at 09:01:23 UTC, John Colvin wrote:
Why would anyone ever want to sort code-points?
Why not? To remove duplicate characters?
They might want to sort graphemes, but that's difficult to do
in-place (needs O(n) memory, I think...). If out-of-place is
good enough
some
On Wed, 14 May 2014 05:13:42 -0400, Jonathan M Davis via
Digitalmars-d-learn wrote:
On Wed, 14 May 2014 08:27:45 +
monarch_dodra via Digitalmars-d-learn
wrote:
On Monday, 12 May 2014 at 18:44:22 UTC, Jonathan M Davis via
Digitalmars-d-learn wrote:
> Sure, you can cast char[] to ubyte[]
On Wed, 14 May 2014 19:50:33 -0400, Meta wrote:
On Wednesday, 14 May 2014 at 22:32:01 UTC, Jonathan M Davis via
Digitalmars-d-learn wrote:
Yeah, much as Andrei would hate to hear it (enforce was his idea, and
he quite
likes the idiom), the fact that lazy is so inefficient makes it so that
"Yuriy" wrote in message news:rfirqtgbparjbqxwt...@forum.dlang.org...
On Wednesday, 14 May 2014 at 08:47:38 UTC, Daniel Murphy wrote:
> I'm not getting any errors with the development head. What os/compiler
> version?
Hm, now that's strange. Building with latest public version seems to work.
On 5/15/14, 1:31 AM, Jonathan M Davis via Digitalmars-d-learn wrote:
On Thu, 15 May 2014 01:29:23 +
Kapps via Digitalmars-d-learn wrote:
On Wednesday, 14 May 2014 at 23:50:34 UTC, Meta wrote:
On the topic of lazy, why *is* it so slow, exactly? I thought
it was just shorthand for taking a
This task asks for an basic implementation of the the
Lempel-Ziv-Welch (LZW) compression/decompression algorithm. I am
keeping two D versions, the first one is minimal, and the second
is a little more optimized:
http://rosettacode.org/wiki/LZW_compression#More_Refined_Version
There are of cour
On Thursday, 15 May 2014 at 06:52:44 UTC, Jonathan M Davis via
Digitalmars-d-learn wrote:
On Thu, 15 May 2014 05:53:45 +
monarch_dodra via Digitalmars-d-learn
wrote:
As a workaround, I'm sure we could specialize enforce without
lazy for built-in types?
No. I don't think that that would w
39 matches
Mail list logo