Blog Post #64 - Animating with Cairo

2019-08-23 Thread Ron Tarrant via Digitalmars-d-learn
Today, and for the next few posts, we'll be looking at Cairo animation. This time, we'll do a simple frame counter at 24fps. The post is here: https://gtkdcoding.com/2019/08/23/0064-cairo-vii-drawingarea-animation.html

Re: Blog Post #64 - Animating with Cairo

2019-08-23 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 23 August 2019 at 09:37:56 UTC, Ron Tarrant wrote: Today, and for the next few posts, we'll be looking at Cairo animation. This time, we'll do a simple frame counter at 24fps. The post is here: https://gtkdcoding.com/2019/08/23/0064-cairo-vii-drawingarea-animation.html CORRECTION:

Re: D1 code to D2I

2019-08-23 Thread jicman via Digitalmars-d-learn
On Thursday, 22 August 2019 at 21:05:49 UTC, Stefan Koch wrote: On Thursday, 22 August 2019 at 18:10:51 UTC, jicman wrote: Greetings! Is there any tool out there, I searched around and didn't find any, that would take ton of D1 code and convert it to D2? Thanks. josé There is:

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread jicman via Digitalmars-d-learn
On Thursday, 22 August 2019 at 19:59:55 UTC, jicman wrote: I think I have figured out what is going on. I will comeback, if I need more help, but I have to rewrite a few more functions. But, thanks for pointing out the pragma. That gave me an idea of what was going on. Well, I rewrote

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread a11e99z via Digitalmars-d-learn
On Friday, 23 August 2019 at 14:02:36 UTC, jicman wrote: On Thursday, 22 August 2019 at 19:59:55 UTC, jicman wrote: I think I have figured out what is going on. I will comeback, if I need more help, but I have to rewrite a few more functions. But, thanks for pointing out the pragma. That

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread a11e99z via Digitalmars-d-learn
On Friday, 23 August 2019 at 16:00:00 UTC, a11e99z wrote: On Friday, 23 August 2019 at 14:02:36 UTC, jicman wrote: On Thursday, 22 August 2019 at 19:59:55 UTC, jicman wrote: cuz I tried compile app void main() { VARIANT a, b; VarCmp( , , 0, 0).writeln; } with DMD for x86/m32 & x64/m64 and I

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread jicman via Digitalmars-d-learn
On Friday, 23 August 2019 at 16:02:38 UTC, a11e99z wrote: On Friday, 23 August 2019 at 16:00:00 UTC, a11e99z wrote: On Friday, 23 August 2019 at 14:02:36 UTC, jicman wrote: On Thursday, 22 August 2019 at 19:59:55 UTC, jicman wrote: cuz I tried compile app void main() { VARIANT a, b; VarCmp(

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread Mike Parker via Digitalmars-d-learn
On Friday, 23 August 2019 at 16:09:16 UTC, jicman wrote: } That looks like D2 code. I am trying to compile D1 code. I think the linker is not getting something right. You might try declaring the offending functions as extern(Windows) function pointers and then loading them from the

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread jicman via Digitalmars-d-learn
On Friday, 23 August 2019 at 16:19:10 UTC, Mike Parker wrote: On Friday, 23 August 2019 at 16:09:16 UTC, jicman wrote: } That looks like D2 code. I am trying to compile D1 code. I think the linker is not getting something right. You might try declaring the offending functions as

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread a11e99z via Digitalmars-d-learn
On Friday, 23 August 2019 at 16:09:16 UTC, jicman wrote: On Friday, 23 August 2019 at 16:02:38 UTC, a11e99z wrote: On Friday, 23 August 2019 at 16:00:00 UTC, a11e99z wrote: On Friday, 23 August 2019 at 14:02:36 UTC, jicman wrote: On Thursday, 22 August 2019 at 19:59:55 UTC, jicman wrote:

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread jicman via Digitalmars-d-learn
On Friday, 23 August 2019 at 16:49:07 UTC, a11e99z wrote: right now problem exists with linker/libs only, compiler see all used VarXXX First of all, thanks for your patient support. But, that function is being used throughout. Also, the same linker builds the whole project with D v1.046.

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread a11e99z via Digitalmars-d-learn
On Friday, 23 August 2019 at 17:03:24 UTC, jicman wrote: On Friday, 23 August 2019 at 16:49:07 UTC, a11e99z wrote: right now problem exists with linker/libs only, compiler see all used VarXXX First of all, thanks for your patient support. to the above program, and still fails with the same

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread jicman via Digitalmars-d-learn
On Friday, 23 August 2019 at 17:18:55 UTC, a11e99z wrote: On Friday, 23 August 2019 at 17:03:24 UTC, jicman wrote: On Friday, 23 August 2019 at 16:49:07 UTC, a11e99z wrote: right now problem exists with linker/libs only, compiler see all used VarXXX First of all, thanks for your patient

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread jicman via Digitalmars-d-learn
On Friday, 23 August 2019 at 20:33:30 UTC, jicman wrote: I actually have more problems. After fixing that problem, others have surfaced. How does one knows which which are the correct names of the undefined symbols? For example: OPTLINK (R) for Win32 Release 8.00.16 Copyright (C) Digital

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread a11e99z via Digitalmars-d-learn
On Friday, 23 August 2019 at 17:50:52 UTC, jicman wrote: On Friday, 23 August 2019 at 17:18:55 UTC, a11e99z wrote: On Friday, 23 August 2019 at 17:03:24 UTC, jicman wrote: On Friday, 23 August 2019 at 16:49:07 UTC, a11e99z wrote: right now problem exists with linker/libs only, compiler see

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread jicman via Digitalmars-d-learn
On Friday, 23 August 2019 at 19:35:52 UTC, a11e99z wrote: On Friday, 23 August 2019 at 17:50:52 UTC, jicman wrote: On Friday, 23 August 2019 at 17:18:55 UTC, a11e99z wrote: On Friday, 23 August 2019 at 17:03:24 UTC, jicman wrote: On Friday, 23 August 2019 at 16:49:07 UTC, a11e99z wrote:

Linking D Runtime

2019-08-23 Thread Jonathan Levi via Digitalmars-d-learn
I am trying to find the D runtime/standard-library object(.o)/library(.a) files inorder to link them with some foreign code (Haskell as it happens). I am writing a program in Haskell but want to use D for some of the imperative style logic. I expect to have a large section of code in D so I

Re: Linking D Runtime

2019-08-23 Thread H. S. Teoh via Digitalmars-d-learn
On Sat, Aug 24, 2019 at 12:26:43AM +, Jonathan Levi via Digitalmars-d-learn wrote: > I am trying to find the D runtime/standard-library > object(.o)/library(.a) files inorder to link them with some foreign > code (Haskell as it happens). > > I am writing a program in Haskell but want to use

Re: Linking D Runtime

2019-08-23 Thread Jonathan Levi via Digitalmars-d-learn
On Saturday, 24 August 2019 at 01:19:01 UTC, H. S. Teoh wrote: Not sure what's the "right" approach, but you could try compiling with dmd -v to find the path(s) to the runtime libraries that you'll need to link. Oh, cool, I managed to find them on my current system. I would love a more

Re: how to definition a non-const pointer that point a const var.

2019-08-23 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, August 23, 2019 10:14:56 PM MDT lili via Digitalmars-d-learn wrote: > Hi: >In C we can definition const int *ncp_to_cv; > or int * const cp_to_ncv; >How to do this in D. D uses parens to restrict how much of the type is const. const int* - const pointer to const int

how to definition a non-const pointer that point a const var.

2019-08-23 Thread lili via Digitalmars-d-learn
Hi: In C we can definition const int *ncp_to_cv; or int * const cp_to_ncv; How to do this in D.