首页 > 解决方案 > 我可以在 Ada 中定义自己的二元运算符吗?

问题描述

我正在 Ada 中创建一个包,我想知道是否可以创建我自己的二进制运算符而不定义标准运算符。喜欢

function "sim"(L,R : matrix) returns boolean;

它检查两个矩阵是否相似。

在此先感谢您的帮助!!

标签: ada

解决方案


Ada allows you to override operators but you cannot invent new operators. On the other hand you can create new functions as you like.


推荐阅读