April 26, 2020
On Friday, 24 April 2020 at 13:45:22 UTC, Phrozen wrote:
> I'm too new to DLang and I have a lot to learn. Probably that's why I have a lot of difficulties. Has anyone tried using a GUI library to the latest DMD 2.090 or DMD 2.091? I plan to use this language for a specific Thermal calculator application for Windows, but for two days I've been struggling with dub and elementary examples in GUI libraries. I need something simple - a modal window with 3 buttons and a two text boxes. So far I have tested DWT, TKD, DFL, dlangui without success.
> Can anyone help me with advice or some more recent tutorial. Thank you!

working GUI library for D:

Gtkd and tkd.


---
dbh.
April 26, 2020
On Saturday, 25 April 2020 at 09:30:44 UTC, Paulo Pinto wrote:
> On Friday, 24 April 2020 at 18:52:55 UTC, Russel Winder wrote:
>> [...]
>
> Just curious, how do you handle the whole RC<RefCell<>> story in Gtk-rs?
>
> For me it made the point that languages with tracing GC or implicit reference counting are much better solution for doing GUI programming.

Hi Paulo,

I don't know if you are referring to the `clone!` macro described here[1]

[1] https://gtk-rs.org/blog/2019/12/15/new-release.html

Antonio
April 27, 2020
On Sunday, 26 April 2020 at 09:09:04 UTC, Antonio Corbi wrote:
> On Saturday, 25 April 2020 at 09:30:44 UTC, Paulo Pinto wrote:
>> On Friday, 24 April 2020 at 18:52:55 UTC, Russel Winder wrote:
>>> [...]
>>
>> Just curious, how do you handle the whole RC<RefCell<>> story in Gtk-rs?
>>
>> For me it made the point that languages with tracing GC or implicit reference counting are much better solution for doing GUI programming.
>
> Hi Paulo,
>
> I don't know if you are referring to the `clone!` macro described here[1]
>
> [1] https://gtk-rs.org/blog/2019/12/15/new-release.html
>
> Antonio

Hi, this macro is new to me, it did not exist when I tried to have a go at Gtk-rs, so it simplifies not having to write such boilerplate ourselves, but like the author mentions it doesn't make it go away, it just gets hidden behind the macro.



April 27, 2020
On Monday, 27 April 2020 at 11:27:57 UTC, Paulo Pinto wrote:
> On Sunday, 26 April 2020 at 09:09:04 UTC, Antonio Corbi wrote:
>> On Saturday, 25 April 2020 at 09:30:44 UTC, Paulo Pinto wrote:
>>> On Friday, 24 April 2020 at 18:52:55 UTC, Russel Winder wrote:
>>>> [...]
>>>
>>> Just curious, how do you handle the whole RC<RefCell<>> story in Gtk-rs?
>>>
>>> For me it made the point that languages with tracing GC or implicit reference counting are much better solution for doing GUI programming.
>>
>> Hi Paulo,
>>
>> I don't know if you are referring to the `clone!` macro described here[1]
>>
>> [1] https://gtk-rs.org/blog/2019/12/15/new-release.html
>>
>> Antonio
>
> Hi, this macro is new to me, it did not exist when I tried to have a go at Gtk-rs, so it simplifies not having to write such boilerplate ourselves, but like the author mentions it doesn't make it go away, it just gets hidden behind the macro.

Hi,

Yes, previously this macro lived (in a simplified form, i.e. no @strong) in the examples provided by the gtk-rs developers. Now it's part of the gtk-rs bindings.

Antonio
May 11, 2020
On Mon, 2020-04-27 at 12:12 +0000, Antonio Corbi via Digitalmars-d-learn wrote:
> On Monday, 27 April 2020 at 11:27:57 UTC, Paulo Pinto wrote:
> > On Sunday, 26 April 2020 at 09:09:04 UTC, Antonio Corbi wrote:
[…]
> > > I don't know if you are referring to the `clone!` macro described here[1]
> > > 
> > > [1] https://gtk-rs.org/blog/2019/12/15/new-release.html
> > > 
> > > Antonio
> > 
> > Hi, this macro is new to me, it did not exist when I tried to have a go at Gtk-rs, so it simplifies not having to write such boilerplate ourselves, but like the author mentions it doesn't make it go away, it just gets hidden behind the macro.
> 
> Hi,
> 
> Yes, previously this macro lived (in a simplified form, i.e. no @strong) in the examples provided by the gtk-rs developers. Now it's part of the gtk-rs bindings.

I have not found any real need to use that clone! macro. I have found it straightforward, and easy, to clone the variables required so they can be moved. It also seems self-documenting, making the cloning obvious.

-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk



1 2
Next ›   Last »