duffee / Astro-Constants

This Perl module provides physical constants usefull for astronomy in MKS and CGS systems
0 stars 1 forks source link

Final warning of long name deprecation #15

Closed duffee closed 4 years ago

duffee commented 8 years ago

Put a big warning at the top of the documentation about the impending removal of deprecated longnames. Can we warn if a symbol is imported? Could change the use constant to

sub CONSTANT { 
    warn "CONSTANT deprecated, use NEWNAME"; 
    return $value;
}

Depends on #14

duffee commented 7 years ago

These constants are now in the :alternate tag. Add type="deprecated" version="v0.13" as attributes to alternateName tag and move them to the :deprecated tag. Add in processing in the write_constant() to change the code to emit a warning.