{5} Accepted, Active Tickets by Owner (Full Description) (3 matches)

List tickets accepted, group by ticket owner. This report demonstrates the use of full-row display.

Chuck (3 matches)

Ticket Summary Component Milestone Type Created
Description
#1 Extension methods and properties Cobra Compiler defect 03/10/08

Support extension methods and properties on existing classes, interfaces and structs whether they come from DLLs or declarations.

This feature is found in Smalltalk, Objective-C (categories), C#, VB and others. C# and VB do it on .NET 3.5, but Cobra is still targeting 2.0 and will support it there. The syntax will be:

extend Foo

def bar

pass

get baz as int

return 1

One interesting question is whether or not to allow a nil receiver. C# does which, imo, is quite strange. For "obj.Foo()" in C# you need to know if Foo() is declared in obj's type or outside of it to know whether or not you can pass nil.


#2 Cannot use "x in someList" where x is dynamic? component1 defect 03/16/08

class X

def main is shared

x = 2 to dynamic? assert (x to int) in [1, 2, 3] # works assert x in [1, 2, 3] # error: Cannot convert type "int?" to "int"


#41 False warning for if statement on box var Cobra Compiler defect 09/03/08
class X

	def main is shared
		x = X()
		x.compute

	var _foo as X?
	
	def compute
		if _foo
			.bar
			if _foo  # false warning here since .bar can change _foo
				.bar
	
	def bar
		_foo = nil

The warning is: foo.cobra(12): warning: The expression "_foo" (of type "X") will always evaluate to true because it is not nilable. You can remove the expression.

This is low priority as it comes up rarely.


Note: See TracReports for help on using and creating reports.