![](/img/trans.png)
[英]Eiffel: a way to call precursor redefined feature on another function
[英]Eiffel: Call use obsolete feature. Call to feature `to_string_8': Use `name_32' instead
我有一個警告,我不能擺脫也不明白:
埃菲爾:呼叫使用已過時的功能。 調用功能“ to_string_8”:改用“ name_32”
item_prototype
是我重新定義一個DB_SERVICE out
if attached {APP_CONFIGURATION}.application_instance.selected_entity_primary_key ({SIT_UTIL}.class_name_lowercase ({like item_prototype})) as l_pk then
還有一點是,我無法將警告消息復制到剪貼板上 ,該怎么辦? 如果有辦法進入EiffelStudio。
看起來好像功能{SIT_UTIL}.class_name_lowercase
接受了STRING
類型的參數,但是當前代碼提供了TYPE [...]
— {like item_prototype}
的類型。 TYPE
類中具有to_string_8
的轉換功能,但已過時,這就是為什么您會收到警告。
必須更改要素class_name_lowercase
的簽名以接受TYPE
而不是STRING
,或者參數的形式應為({like item_prototype}).name_32.as_string_8
。
為了支持Unicode標識符,最好還是更改class_name_lowercase
的簽名,以便它接受STRING_32
並傳遞({like item_prototype}).name_32
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.