[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Win32API and frozen objects?

Daniel Berger

6/11/2005 4:25:00 AM

Hi,

Ruby 1.8.2
Windows XP

Why does this cause an error?

require "Win32API"

PathIsURL = Win32API.new("shlwapi","PathIsURL","P","L")

path = "file:///foo/bar"
path.freeze

if PathIsURL.call(path) > 0
puts "yes"
else
puts "no"
end

puts path

As far as I can tell, path isn't being modified. What's happening?

Regards,

Dan