Tip: use directive
Posted: Sat Feb 09, 2008 12:39 pm
There are five implicit "use" directives at the top of a Cobra program:
This means that you have immediate access to Object, String, List<of T>, TextWriter, StringBuilder and CobraCore, among others. If you need access to something more, you can put your own "use" at the top of your file like so: You can see this in http://cobra-language.com/samples/Download/, for example.
use System
use System.Collections.Generic
use System.IO
use System.Text
use Cobra.Lang
This means that you have immediate access to Object, String, List<of T>, TextWriter, StringBuilder and CobraCore, among others. If you need access to something more, you can put your own "use" at the top of your file like so:
use System.Net
# ...