Apologies in advance for the stupid question, but I've started trying to learn Cobra, and my first stumbling block was trying to find what is provided by CobraCore (and whatever the other automatically imported module is). But CobraCore isn't obviously in the svn repository:
- Code: Select all
max@heaven ~/extscm/cobra $ find ./ -iname CobraCore*
max@heaven ~/extscm/cobra $
Am I missing something obvious? (or is it not in the svn repository for some reason)
Also, my first attempt to use it in anger was to create a oneliner to download a bunch of files (I'd normally use python for this). It occurred to me that it would be handy if there was some argument to the compiler to put cruft round the stuff in the file to make this easier (cf perl)?
Thus
- Code: Select all
cobra -M Foo.cobra
(M for insert main or some such)
where Foo.cobra is e.g.
- Code: Select all
for n in 1..10
print n
gets interpreted as
- Code: Select all
class Foo
def main is shared
for n in 1..10
print n