Hi,
I am facing another problem now. Please take a look at this code -
(import '(System.IO Path Directory File StreamWriter
DirectoryNotFoundException))
(import '(System.Diagnostics Process ProcessStartInfo
ProcessWindowStyle))
(defn strt [tool]
(let [info (ProcessStartInfo. tool) p (Process.)]
(doto p (.StartInfo info)) (.Start p)))
When I try to execute the above function using -
(strt "C:\\WINDOWS\\system32\\cmd.exe")
I get the following exception -
System.MissingMethodException: Method
'System.Diagnostics.Process.StartInfo' not found.
at System.RuntimeType.InvokeMember(String name, BindingFlags
bindingFlags, Binder binder, Object target, Object[] providedArgs,
ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParams)
at System.Type.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args)
at clojure.lang.Reflector.CallInstanceMethod(String methodName,
Object target
, Object[] args) in d:\Manoj\Languages\Clojure\ClojureCLR\Clojure
\Clojure\Runtime\Reflector.cs:line 122
at lambda_method(Closure , Object )
at AFunction_impl.invoke(Object )
at lambda_method(Closure )
at AFunction_impl.invoke()
at REPLCall(Closure )
Please let me know where's the issue.
Thanks and regards,
Manoj.
On Jul 2, 11:43 pm, Baishampayan Ghose <[email protected]> wrote:
> mmwaikar wrote:
> > Thanks Michael, and you are spot on about your observation on
> > parentheses :) but when I wasn't putting (def name-wo-extn
> > "something") in another (), I was getting some error like - too many
> > arguments to def, hence I put one more. I am still getting used to
> > this syntax.
>
> Use a parenthesis aware editor and let the editor manage those for you.
> You will be in deep trouble if you are counting and managing the
> parenthesis manually :)
>
> Otherwise, Clojure (like all Lisps) has very minimal syntax.
>
> Regards,
> BG
>
> --
> Baishampayan Ghose <[email protected]>
> oCricket.com
>
> signature.asc
> < 1KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---