lazy-initialization Questions

2

Solved

Possible Duplicate: What's the (hidden) cost of lazy val? (Scala) Scala allows the definition of lazy values lazy val maybeUnusedValue = someCostlyInitialization where someCost...
Dinnerware asked 4/11, 2010 at 9:11

1

Solved

When using Josh Smith's RelayCommand, most of the examples I've seen use lazy initialization such as: public class ViewModel { private ICommand myCommand; public ICommand MyCommand { get { ...
Altogether asked 22/9, 2010 at 13:53

4

Solved

This is a small detail but everytime I lazy load something I get caught up on it. Are both of these methods acceptable? Is either better? Assume that the variable has the retain property. Method #...
Weatherspoon asked 14/9, 2010 at 19:37

6

Solved

I've been learning scala and I gotta say that it's a really cool language. I especially like its pattern matching capabilities and function literals but I come from a javascript, ruby background an...

1

Solved

I want to create a decorator that works like a property, only it calls the decorated function only once, and on subsequent calls always return the result of the first call. An example: def SomeCla...
Durkheim asked 13/7, 2010 at 13:34

9

Solved

Is there a way to implement a singleton object in C++ that is: Lazily constructed in a thread-safe manner (two threads might simultaneously be the first user of the singleton - it should sti...

6

Solved

What's a good existing class/design pattern for multi-stage construction/initialization of an object in C++? I have a class with some data members which should be initialized in different points i...
Stoner asked 28/1, 2010 at 8:22

2

Solved

Where are the most common places where you've gotten an org.hibernate.LazyInitializationException in Grails, what was the cause and how did you solve it ? I think this one exception comes up a lot...
Blackmarketeer asked 2/9, 2009 at 14:24

© 2022 - 2024 — McMap. All rights reserved.