GUI library for DMD 2.090 or DMD 2.091

Antonio Corbi acrb at ggmail.com
Mon Apr 27 12:12:52 UTC 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


More information about the Digitalmars-d-learn mailing list