When should I use `tempvar` instead of `local`?

One instance where you need to use tempvar is with the new operator. Otherwise you’ll get a “The use of ‘new’ in reference expressions is not allowed.” error (cairo v0.9.0).

18 Likes