Tideway Community Forum

forgot password?
   
 
TPL: model.Host gotchas
Posted: 24 September 2008 09:51 AM   [ Ignore ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  132
Joined  2008-01-25

A frequent gotcha I’ve seen in TPL is accidentally using model.Host() when you meant model.host() or host.attribute

I’ve written this up with examples in this article.

If you want the executive summary:

Any use of model.Host() in TPL should be avoided.

From the next release onwards the TPL compiler will warn you of this situation.

Profile