Tagged "C"

GCC's 'maybe unitialized' warning

Lets talk about GCC’s maybe-unitialized warning. So I have this code: double v; p.Get(k, v); SetValue(Clamp(v, 0.0, 1.0)); It works great.

Read more...

closures in c

Back in November 2005, I was learning alot about Javascript. I’d used closures (essentialy anonymous functions) in Perl for years without thinking about it, but the way Javascript scopes variables makes them not work quite the same, so I was suddenly forced to think about closures in more detail.

Read more...