[Win32utils-devel] Win32 namespace
djberg96 at gmail.com
Tue Sep 4 07:24:58 EDT 2007
On 7/30/07, Gordon Thiesfeld <gthiesfeld at gmail.com> wrote:
> > Hey, I like that.
> Thanks. All of my code is in svn on rubyforge if you're interested.
> > I think this approach makes sense, i.e. WMI is part of Win32, and
> > LogicalDisk is part of WMI.
> > Mind you, I certainly don't own the Win32 namespace so you can do as you
> > wish, but I think this is the best approach, as it puts your code
> > effectively under the "Win32::WMI" namespace, which should eliminate any
> > potential namespace conflicts.
> > What do you think?
> I think this is a good idea, but it won't work the way I've written
> it. I'm using const_missing to create WMI classes as needed.
> Win32_LogicalDisk is a WMI class, and it doesn't exist in ruby until
> you invoke #find on it. It would have to be:
I would think you could recreate the class on the fly or something.
I'll take a look at what you've got checked into SCM later this week
if I get the chance.
BTW, any ideas for a release date?
More information about the win32utils-devel