Jump to content

Talk:Field encapsulation

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Reconrabbit (talk | contribs) at 19:19, 16 May 2024 (Assessment (Low): banner shell, +Computing (Rater)). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Disadvantage: inlining?

[edit]

In the article listed under disadvantages: "In some languages, like C++, the getter / setter methods are usually inline functions, so that when inlining is performed, the code looks just like direct field accessing."

How is this a disadvantage? --Dmaust (talk) 03:24, 12 March 2013 (UTC)[reply]

I agree, I don't think this is a disadvantage. Moreover I don't think it has anything to do with a language, like C++, it's more a choice made by a compiler at compile time. --Tragicmm (talk) 16:54, 24 December 2013 (UTC)[reply]