在对泛型程设本质特征深入研究的基础上提出了新型泛型语言机制构想,并在Apla→Java生成系统中具体实现的新方法.该方法比现有的Java、C++、C#等语言中泛型机制的实现方法简单,并通过经典算法实例演示实现效果,大量用例的成功测试表明该实现方法的可靠性和新型泛型语言机制的正确性.
A new implementation method of new generic language mechanisms which were implemented in the Apla→Java generation system was presented,and a typical algorithm example was illustrated. The method is simpler than the existing generic methods in Java,C + +,C # and other languages. A large number of successful testing cases demonstrated reliability of the implementation method and correctness of these new generic language mechanisms.