The Cobra Programming Language Version 0.0.7 Release Notes 2006-04-16 ------------------------------------------------------------------------------ See also: Cobra\ReadMe.text Cobra\Docs\License.text http://CobraLang.com/ In this release: == Additions == * Added method overloading: def count(s as String) pass def count(tr as TextReader) pass * Added variable number of arguments with the new `vari` keyword: def sumInts(stuff as vari int) as int sum = 0 for x as int in stuff sum += x return sum def allTrue(stuff as vari object) as bool for x as Object in stuff if not x return false return true * Added `use` directive (like C#'s `using` and analagous to Python's `import`): use System.Net * Added a new program in Examples, download.cobra. * Added a new program in Examples, wordcount.cobra. * Expanded type inference to work for indexer expressions: s = listOfStrings[i] * Enabled references to `System` in expressions such as `System.Console.out`. These are not strictly needed since Cobra programs use System by default, but it's provided for completeness. == Changes == * Set the type of CobraCore.commandLineArgs to List(of string) * Example programs are now compiled "out of the box". == Fixes == * Improved forward references in code to include classes not declared yet. * Fixed bugs with some list and dictionary literals. * Fixed a bug with the `false` literal. * Fixed a bug with the evaluation of truthfulness. * Fixed a tokenizing/parsing bug in indexer expressions. * Fixed a bug with certain call expressions. * Fixed a bug when returning `this`. * Fixed a bug where '\r' could not be used in string literals. ------------------------------------------------------------------------------