raku - Raku 中的 int32 失败
问题描述
在使用 NCurses 模块时,我遇到了一些我在 repl 中提炼出来的奇怪行为:
> my $c = ' '.ord
32
> $c.WHAT
(Int)
> my int32 $n = ' '.ord
32
> $n.WHAT
Bytecode validation error at offset 128, instruction 20:
operand type 32 does not match register type 24 for op getlex_ni in frame <unit>
> my int32 $m = 32
32
> $m.WHAT
Bytecode validation error at offset 128, instruction 20:
operand type 32 does not match register type 24 for op getlex_ni in frame <unit>
> my int32 $j = int32( 32 )
Cannot invoke this object (REPR: P6int; int32)
in block <unit> at <unknown file> line 1
问题是 wborder 是用 (NCurses::WINDOW, int32, int32, int32, int32, int32, int32, int32, int32 --> int32) 的签名定义的,但我没有尝试提出 int32 版本32个已经工作了。我确定我错过了一些东西,但我不知道是什么。
解决方案
推荐阅读
- amazon-redshift - 如何设计允许我动态查询总操作数、唯一用户数和总用户数的数据仓库模型
- java - 在另一个项目中将没有@SpringBootApplication注释的spring boot作为jar库运行
- python - 如何使输出图像的大小与原始图像的大小相同以计算 CNN 中的损失?
- node.js - 如何将时区设置为 UTC 以在 Windows 上进行赛普拉斯测试?
- python - 我正在制作一个机器人来自动购买枪底漆,我需要它来单击下拉按钮以获取轮数
- javascript - 如何在 Flask 项目的 VSCode 中调试 JavaScript?
- html - 图片链接跨越整个宽度
- html - 拿不到两个
或者
在要堆叠的页脚中 - c# - SkiaSharp 触摸位图图像
- java - getClass().getResourceAsStream() 的问题