Conditionally referencing mono.
Posted: Tue Jun 29, 2010 7:49 pm
Hi there. I've recently found Cobra. It is very interesting.
I am a python programmer from Linuxlandia so I'm not so cluey on .Net. I'd like to ask how I can make a program usable on Windows and on Linux if it wants to use things in Mono.Posix - ie: so that one binary can run on either operating system. In other words, can it at runtime figure out that it is on Linux and then dynamically load Mono.Posix somehow to use it's types?
And secondly, Chuck, can you clarify sharp strings?
You posted a post that says "Forget about sharp'foo' some time back. The current form is sharp('foo') and the old form is just there so code doesn't break."
But the latest code seems to all use the sharp'foo' version and 502-sharp.cobra shows $sharp('foo') as oldSyntax and appears to show sharp'foo' as current.
Of the three forms which is current and should be used? And are the others for other situations or deprecated?
Thanks lots,
Al
I am a python programmer from Linuxlandia so I'm not so cluey on .Net. I'd like to ask how I can make a program usable on Windows and on Linux if it wants to use things in Mono.Posix - ie: so that one binary can run on either operating system. In other words, can it at runtime figure out that it is on Linux and then dynamically load Mono.Posix somehow to use it's types?
And secondly, Chuck, can you clarify sharp strings?
You posted a post that says "Forget about sharp'foo' some time back. The current form is sharp('foo') and the old form is just there so code doesn't break."
But the latest code seems to all use the sharp'foo' version and 502-sharp.cobra shows $sharp('foo') as oldSyntax and appears to show sharp'foo' as current.
Of the three forms which is current and should be used? And are the others for other situations or deprecated?
Thanks lots,
Al