Menu

#28 Same-name operations do not type

open
nobody
None
5
2010-12-01
2010-12-01
H. Smith
No

If type Queue has an operation called Is_Empty(Queue) and type Stack has an operation called Is_Empty(Stack), and Stack_Template is used by Queue_Template, then calls to Is_Empty(Stack) (and maybe Is_Empty(Queue) as well) fail to type and throw an exception.

Discussion


Log in to post a comment.