JayBazuzi/Pash2 — pull request #37 by JayBazuzi (2013-03-18 06:03:19+00:00)
Title: `New-Object`

You can do things like:

> New-Object version "1.2.3.4" # returns an instance of System.Version, passing "1.2.3.4" to the ctor.

Some limitations:

- More complex ctor parameters don't work (`New-Object version 1,2,3,4`)
- Builtin types aren't recognized (`int`, `bool`, etc.). See _PowerShell In Action_, Table 3.4 for the list.
- PowerShell type conversions are NYI. For example, `New-Object string 'abc'` should work, even though `string` doesn't have a ctor that takes a `string`.
- COM objects don't work, which is maybe irrelevant for Pash.