is_equal中的STRING_8不符合STRING_UC [英] STRING_8 does not conform to STRING_UC in is_equal

查看:99
本文介绍了is_equal中的STRING_8不符合STRING_UC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 xplain2sql . com/gobo-eiffel/gobo"rel =" nofollow noreferrer> Gobo编译器及其工具.发出geant compile命令后,我得到很多类似的错误:

I'm trying to build xplain2sql using Gobo compiler and its tools. After issuing geant compile command I get a lot of similar errors:

[CATCALL]类SQL_GENERATOR_TSQL65(SQL_GENERATOR,2610,5):类型 实际参数#1的"STRING_8"不符合类型"UC_STRING" 类"UC_STRING"中功能"is_equal"中形式参数的说明

[CATCALL] class SQL_GENERATOR_TSQL65 (SQL_GENERATOR,2610,5): type 'STRING_8' of actual argument #1 does not conform to type 'UC_STRING' of formal argument in feature `is_equal' in class 'UC_STRING'

以上错误指的是最后一行这段代码:

Above error refers to the last line of this code:

    sql_infix_expression (a_left: XPLAIN_EXPRESSION; an_operator: STRING; a_right: XPLAIN_EXPRESSION): STRING
        -- SQL expression for multiplication/division, etc.
    require
        valid_left: a_left /= Void
        valid_right: a_right /= Void
        operator_not_empty: an_operator /= Void and then not an_operator.is_empty
    local
        left_value,
        right_value: STRING
    do
        if
            an_operator.is_equal (once "+") and then

我不认识Eiffel,我只想编译这段代码.我还可以使用其他编程语言的一些常识和经验来解决其他构建错误,但是我不知道如何处理.

I don't know Eiffel, I just want to compile this code. There were other build errors which I was able to fix using some common sense and experience from other programming languages but I don't know how to deal with this.

推荐答案

在这种情况下,我认为您可以使用same_string (..)代替is_equal (..).

In this case, I think you could use same_string (..) as replacement for is_equal (..) .

这篇关于is_equal中的STRING_8不符合STRING_UC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆