我正在尝试中止ada程序中的一个任务,但在编译过程中遇到以下错误:
expect task name or task interface class-wide object for "abort"代码如下所示:
task type Sending_Message;
type Send_Message is access Sending_Message;
declare
send : Send_Message;
begin
send := new Sending_Message;
...
abort send; -- this line throws error
end;当我再次尝试这样的代码行时:
abort Sending_Message;我得到了错误:
invalid use of subtype mark in expression or call你知道哪里出问题了吗?
发布于 2012-01-23 23:38:42
您必须显式取消引用访问类型:
abort send.all;https://stackoverflow.com/questions/8974024
复制相似问题