代码之家  ›  专栏  ›  技术社区  ›  Pipo

艾菲尔:呼叫使用过时的功能。调用功能“to_string_8”:改用“name_32”

  •  0
  • Pipo  · 技术社区  · 7 年前

    我有一个我无法摆脱的警告,我也不明白:

    艾菲尔:呼叫使用过时的功能。调用功能“to_string_8”:改用“name_32”

    item_prototype 是我重新定义的DB_服务 out

    if attached {APP_CONFIGURATION}.application_instance.selected_entity_primary_key ({SIT_UTIL}.class_name_lowercase ({like item_prototype})) as l_pk then
    

    enter image description here enter image description here

    还有一点是我 ,我该怎么做?如果有办法进入埃菲尔铁塔。

    1 回复  |  直到 7 年前
        1
  •  1
  •   Alexander Kogtenkov    7 年前

    它看起来像一个功能 {SIT_UTIL}.class_name_lowercase 接受类型为的参数 STRING TYPE [...] 类型 {like item_prototype} . 有一个转换功能 to_string_8 TYPE ,但它是过时的,这就是为什么会收到警告。

    特征的签名 class_name_lowercase 必须更改为接受 类型 而不是 ,或参数的形式应为 ({like item_prototype}).name_32.as_string_8 .

    为了支持Unicode标识符,最好更改 无论如何,这样它就接受了 STRING_32 ({like item_prototype}).name_32 .

    推荐文章