My_Thread : Thread_Ptr := new_Thread(X.Runnable'Access);
You need to do this:
My_Thread : Thread_Ptr := new_Thread(Runnable_Ptr'(X.Runnable'Access));
It turns out that in the currently-available version of AppletMagic there is an ambiguity in the "new_Thread" method. The problem is that there are several "new_Thread" operations that take one parameter, and they're ambiguous enough that the Ada compiler can't determine which one to call. The "Runnable_Ptr'(" stuff tells the Ada compiler that the parameter enclosed is of type "Runnable_Ptr", which is enough to enable the code to be compiled.
You may go to the next section.
You may also:
![]() |
![]() |
---|
David A. Wheeler (dwheeler@dwheeler.com)
The master copy of this file is at
"http://www.adahome.com/Tutorials/Lovelace/s16s7r3.htm".