Inheritance: AbstractStore
Example #1
0
        private static IStore GetConstant()
        {
            IStore	store;

            if (BuiltinStore.constant == null)
            {
                lock (BuiltinStore.mutex)
                {
                    if (BuiltinStore.constant == null)
                    {
                        store = new SimpleStore ();

                        foreach (KeyValuePair<string, IFunction> instance in BuiltinFunctions.Instances)
                            store[instance.Key] = new FunctionValue (instance.Value);

                        BuiltinStore.constant = store;
                    }
                }
            }

            return BuiltinStore.constant;
        }
Example #2
0
        private static IStore GetConstant()
        {
            IStore store;

            if (BuiltinStore.constant == null)
            {
                lock (BuiltinStore.mutex)
                {
                    if (BuiltinStore.constant == null)
                    {
                        store = new SimpleStore();

                        foreach (KeyValuePair <string, IFunction> instance in BuiltinFunctions.Instances)
                        {
                            store[instance.Key] = new FunctionValue(instance.Value);
                        }

                        BuiltinStore.constant = store;
                    }
                }
            }

            return(BuiltinStore.constant);
        }
Example #3
0
 public BuiltinStore()
 {
     this.store = new FallbackStore (BuiltinStore.GetConstant (), new SimpleStore ());
 }
Example #4
0
 public BuiltinStore()
 {
     this.store = new FallbackStore(BuiltinStore.GetConstant(), new SimpleStore());
 }