Skip to content

無法在Java 物件函數使用自己傳回的數值,會exception #33

Description

@WeiHungHuang

請見附檔
新增了Pattern 這個物件
Pattern 有 similar() 和 getSimilar() 這兩個函數
如果直接將相同物件getSimilar() 的回傳值給similar(),會造成exception
pattern:similar(pattern:getSimilar())
GET LUA VARIABLE 'V1' 會不正常
如果將此行拿掉則會正常

另外,間接設定similar 則會正常
sim = pattern:getSimilar()
pattern:similar(sim)

problem.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions