Using D1 with phobos
I have a text input field, an instance gtk.Entry.Entry,
the call setText("")causes a runtime error
Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed
Why? There seems to be a problem with D, I tried this:
string empty = "";
assert (empty != null);
my_entry.setText(empty)
The program terminated with an approval error.
How can I get around this?
hasen source
share