Creating a library
Posted: Fri Nov 29, 2013 3:09 am
What are best practices/conventions for coding a Cobra library?
I'm getting compilation errors for having no main method. Is there an option to suppress compilation errors in this event? Should I simply insert an empty class with an empty main method to supress the warning?
I have cloned down projects listed in the wiki and none of them compile unfortunately, the code must run on an older version of Cobra. If they don't compile I'm not sure if I should follow their conventions.
I'm specifically getting errors that other classes cannot be found although they exist in the same namespace. I tried using import but I'm getting this error : " error: Expecting use, assembly, namespace, class, interface or enum, but got "import"." What is odd is that the keyword is listed in the source here : http://cobra-language.com/trac/cobra/br ... pecs.cobra
Thanks
I'm getting compilation errors for having no main method. Is there an option to suppress compilation errors in this event? Should I simply insert an empty class with an empty main method to supress the warning?
I have cloned down projects listed in the wiki and none of them compile unfortunately, the code must run on an older version of Cobra. If they don't compile I'm not sure if I should follow their conventions.
I'm specifically getting errors that other classes cannot be found although they exist in the same namespace. I tried using import but I'm getting this error : " error: Expecting use, assembly, namespace, class, interface or enum, but got "import"." What is odd is that the keyword is listed in the source here : http://cobra-language.com/trac/cobra/br ... pecs.cobra
Thanks