Aliases to a Protected Type

Proposal Information

  • State of this Proposal: Raw / Stream of Conscious
  • Current Owner: JimLewis, ...
  • Contributors: JimLewis, ...
  • Date Proposed: 2014-Nov-12
  • Date Last Updated:
  • Priority:
  • Complexity:
  • Focus: Testbench
  • Related Issues: None
  • Competing Issues: None

Requirement Summary

Aliases to protected type methods and to protected types themselves allows for name updates to a protected type data structure without having

Alias to Methods -

[Author Comment: Subsumed by ProtectedTypeComposition ]

Motivation: allow methods to have alternate names. During the long term support of data types implemented within a protected type, names change to bring consistency among different data structures. Aliases to methods offers a simple, light weight way to maintain backward compatibility with older naming structures

type ScoreBoardPType is protected
procedure Push (Item : in ExpectedType) ;
. . .
-- Depreciated, but kept for backward compatibility
alias PutExpectedData is Push[ExpectedType] ;
end protected ScoreBoardPType ;

Alias to a Protected Type

[Author Comment: No change required. This feature already supported.]

Motivation: allow methods to have alternate names. During the long term support of data types implemented within a protected type, names change to bring consistency among different data structures.

type CovagePType is protected
. . .
end protected CovagePType ;

-- Depreciated, but kept for backward compatibility
alias CovPType is CoveragePType ;

Questions

Issues

General Comments

Important for maintaining open source data structures. Permits minor revisions and name changes in interfaces and simplifies changes made to improve consistency between different packages.

Supporters

Add your signature here to indicate your support for the proposal

-- JimLewis - 2014-12-03

-- Brent Hayhoe - 2014-12-22

-- MortenZilmer - 2015-01-21

Topic revision: r7 - 2020-02-17 - 15:34:36 - JimLewis
 
Copyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback