Dim f as xojo.io.folderitem
Dim g as xojo.io.folderitem
f = New folderitem(“testfolder”)
g = New folderitem(“testfolder”)
If f = g // returns false
if f.path = g.path // returns true
I assume this is expected; right?
Dim f as xojo.io.folderitem
Dim g as xojo.io.folderitem
f = New folderitem(“testfolder”)
g = New folderitem(“testfolder”)
If f = g // returns false
if f.path = g.path // returns true
I assume this is expected; right?
If f = g // this asks “are F and G references to the same object” which they are not
Same behavior with classic folder items
Dim f as folderitem
Dim g as folderitem
f = New folderitem(“testfolder”)
g = New folderitem(“testfolder”)
If f = g then // returns false
break
end if
if f.NativePath = g.NativePath then // returns true
break
end if
Yes.
One could argue that
f Is g
maybe should return True if
f.NativePath = g.NativePath
returns True.