develooper Front page | perl.perl6.users | Postings from August 2019

DEPRECATED routine

Thread Next
From:
Marcel Timmerman
Date:
August 4, 2019 12:20
Subject:
DEPRECATED routine
Message ID:
aba98d8d-abe4-936a-5a5f-5c182dd3b78a@gmail.com
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

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About