Hi all,

Studying GTK::Simple if found about the existence of a routine DEPRECATED which I couldn't find in the Perl6 documents. Reading from the code I see that it needs 3 arguments, start version of deprecation, version when it is removed and a string like in the 'is DEPRECATED()' trait.

A use like

sub gtk_builder_add_from_file ( ... ) {
  DEPRECATED(
    'other multi version of gtk_builder_add_from_file', '0.17.10', '0.20.0'
  );
  ...
}


Gives a result like;

Saw 1 occurrence of deprecated code.
================================================================================
Sub gtk_builder_add_from_file (from Gnome::Gtk3::Builder) seen at:
/home/marcel/Languages/Perl6/Projects/perl6-gnome-gtk3/../perl6-gnome-native/lib/Gnome/N/X.pm6 (Gnome::N::X), line 109
Deprecated since v0.17.10, will be removed with release v0.20.0!
Please use other version of gtk_builder_add_from_file instead.

Perhaps it should be added to the docs (or I am look in the wrong spot :-)

Thanks very much for the documentation as it is now
Regards,
Marcel

Reply via email to