The Cobra Programming Language Version 0.0.6 Release Notes 2006-04-09 ------------------------------------------------------------------------------ See also: Cobra\ReadMe.text Cobra\Docs\License.text http://CobraLang.com/ In this release: == Additions == * Code can now refer to methods, properties, etc. that are declared later in the class. Previously, a declaration had to precede any usage of it. * Added doc strings for methods, properties, variables, enums, constructors and destructors and the top of a module. class Customer get totalRevenue as decimal """ Return the total revenue in dollars from this customer across all time. """ total = 0.0 for payment in .payments total += payment.amount return total * Added character literals. They look like strings but are prefixed by `c` as in c'A' and c"\n" * Finished first example program: sizes.cobra in the Examples subdirectory. == Fixes == * Enhanced if-inherits (or you could say, fixed it) to not only allow invocations on the type, but to recognize the variable of the given type in assignments and passing to arguments. if obj inherits Car operator.drive(obj) # drive() is statically typed for a Car else if obj inherits Plane operator.fly(obj) * Fixed bug when passing a string-with-substitution to a constructor. ------------------------------------------------------------------------------