search for: insantiating

Displaying 4 results from an estimated 4 matches for "insantiating".

Did you mean: instantiating
2008 Jul 23
0
[LLVMdev] CollectorRegistry
On 2008-07-23, at 08:58, Simon Ask Ulsnes wrote: > I am attempting to write a garbage collector for LLVM, and the tiny > example in the docs at http://llvm.org/releases/2.3/docs/GarbageCollection.html > gives this line: > > CollectorRegistry::Add<MyCollector> > X("mygc", "My bespoke garbage collector."); > > My question is now: Am I
2008 Jul 23
2
[LLVMdev] CollectorRegistry
Hey, I am a bit confused about the CollectorRegistry. I am attempting to write a garbage collector for LLVM, and the tiny example in the docs at http://llvm.org/releases/2.3/docs/GarbageCollection.html gives this line: CollectorRegistry::Add<MyCollector> X("mygc", "My bespoke garbage collector."); My question is now: Am I supposed to instantiate my collector
2006 Jun 15
3
How to mock a model method for unit tests?
...the tests\mocks folder and added a file called utility.rb with only this: # this is the mock file class Utility def do_something_expensive # shortcut, just return true to satisfy client code true end end So this way, in my tests, when my model uses the Utility class, it should be insantiating my mock instead. But when I rake test:units, I get a syntax error saying that it can''t construct a Utility object with the original constructor: "Wrong number of argumes (0 for 1)". It''s as if the mock class is totally taking over, whereas I just want to override t...
2009 Feb 17
4
[LLVMdev] Parametric polymorphism
I'm a newcomer to llvm, but what you've done so far is very impressive. Llvm is a godsend to anybody who is attempting to implement their own their own language. :-) My company is considering using llvm as the backend for a small matlab-like language for scientific computation; our other option is MSIL. After reading through the documentation, I noticed that llvm seems to have one major