Re: C language extension - Automatically cast

2021-05-28 Thread Florian Weimer via Gcc
* Sławomir Lach: > One of items is automatically cast. For example I declared variable called > Button of GtkButton and pass it to function requires GtkWidget. Why do not > automatically cast to GtkWidget (like in class hierarchy or conversion > operator in C++ or some extra constructors)? But

C language extension - Automatically cast

2021-05-02 Thread Sławomir Lach
In desperation made by programming in GTK+ I realized, some of object languages could been implemented in C, but only these not require to made changes in programs in runtime (compiler output). One of items is automatically cast. For example I declared variable called Button of GtkButton and pa