Go Programming talk [OT]

Kagamin spam at here.lot
Sun Jun 6 23:28:26 PDT 2010


Leandro Lucarella Wrote:

> It looks like Go now have scope (exit) =)
> 
> http://golang.org/doc/go_spec.html#DeferStmt
> 
And in order to execute block of statements you must make compiler happy:

// f returns 1
func f() (result int) {
	defer func() {
		result++
	}()
	return 0
}



More information about the Digitalmars-d mailing list