trait is DEPRECATED (Attribute)
Documentation for trait is DEPRECATED (Attribute)
assembled from the following types:
class Attribute
From Attribute
(Attribute) trait is DEPRECATED (Attribute)
multi sub trait_mod:<is>(Attribute , :!)
Marks an attribute as deprecated, optionally with a message what to use instead.
my = C.new( foo => 42 ); # doesn't trigger with initialization (yet)say .foo; # does trigger on usage
After the program is finished, this will show something like this on STDERR:
# Saw 1 occurrence of deprecated code.# =====================================# Method foo (from C) seen at:# script.p6, line 5# Please use 'bar' instead.