我的问题很简单,就像谷歌让我失望一样。如何将无界的字符串转换为整数? 如果字符串是有界的,我可以这样做:I : Integer := Integer'Value("613"); 然而,我的字符串是无界的,和Ada引发此错误: expected type "Standard.String" found private type "Ada.Strings.Unbounded.Unbounded_Str
我有一个通用的包装Containers.Stacks看起来大致是 generic
type Value_Type is private;
package Containers.Stacks with Preelaborate is
--Node stuff
type Stack is new Container with private;
--Oth
我们最近更新了GCC版本(4.8.2至5.3.0),并在某些Ada应用程序中开始接收意外的约束错误。我已经将它归纳为以下: -- moo.adb
with text_io;
procedure moo is
type thing_type is (something1,something2,something3,something4,something5,something6);
我在ADA定义的矩阵型是这样的: type Matrix_Type is array(Natural range <>, Natural range <>) of Item_Type; 为了一些转换应用到输入矩阵 ,我需要一个函数来定义一个矩阵切片。 我想,通过这样做以下方式 procedure Do_Stuff(M: Matrix_Type) is
-- c needs to be h
让下面的Ada类型定义: type Type_Huge is array (1 .. Integer'Last) of Float;
type Type_B is (foo, bar, blop, bloub);
type Type_A (disc : Type_B := foo) is
record
case disc is
when foo =>
因此,这是一个简单的项目,我之前将它们放在一起进行测试,然后再做一些很酷的事情。最终的目标是让程序能够通过真棒dll功夫来处理模块化。 但是,宝贝的步骤。现在我只想制作链接。 这里我有Adder.ads: package Adder is
function Add(A : Integer; B : Integer) return Integer;
end Adder;
和各自A