mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-06 23:02:28 +01:00
Fix wrong link to the "once key" mechanism. Issue reported at https://docs.google.com/spreadsheet/ccc?key=0At9HXU58N0BAdFNpbUljRHRjR2NqYk9feXd1V0Zubmc&usp=sharing
(commit by Conaclos) git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1414 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -167,7 +167,7 @@ So in this simple form, <code>attached x</code> can be used instead of <code>x /
|
|||||||
|
|
||||||
There is a code pattern for functions that exists in some Eiffel software to effect "once-per-object / lazy evaluation".
|
There is a code pattern for functions that exists in some Eiffel software to effect "once-per-object / lazy evaluation".
|
||||||
|
|
||||||
{{note|As of EiffelStudio version 6.6, the use of this code pattern effecting "once per object" is no longer necessary. V6.6 includes explicit support for <code>once</code> routines which can be adjusted by a [[ET: Other Mechanisms#Adjusting once semantics with "once keys"|once key]] to specify once per object.}}
|
{{note|As of EiffelStudio version 6.6, the use of this code pattern effecting "once per object" is no longer necessary. V6.6 includes explicit support for <code>once</code> routines which can be adjusted by a [[ET: Once routines and shared objects#Adjusting once semantics with "once keys"|once key]] to specify once per object.}}
|
||||||
|
|
||||||
This "once-per-object" code pattern employs a cached value for some object which is not exported. When it is applied, the "once-per-object" function checks the attachment status of the cached value. If the cached value is void, then it is created and assigned to <code>Result</code>. If the cached value was found already to exist, then it is just assigned to <code>Result</code>.
|
This "once-per-object" code pattern employs a cached value for some object which is not exported. When it is applied, the "once-per-object" function checks the attachment status of the cached value. If the cached value is void, then it is created and assigned to <code>Result</code>. If the cached value was found already to exist, then it is just assigned to <code>Result</code>.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user