Displaying 3 results from an estimated 3 matches for "has_next".
Did you mean:
has_net
2006 Mar 03
6
has_one :next - invalid name?
I have this in a model:
has_one :next,
:class_name=>''WorkPart'',
:foreign_key=>''next_id''
And it causes this error:
compile error
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_record/deprecated_associations.rb:83:
void value expression
2008 May 10
0
[LLVMdev] Python bindings available.
...n was idiomatic in a functional language because
it's compatible with recursion (you can translate for_elements into a
tail recursive loop), but perhaps an enumerator class would be more
idiomatic in Python:
for_elements(parent, callback) =
pos = parent.begin
while pos.has_next()
callback(pos.current)
The upshot, aside from being able to iterate the IR, was that it's
easy to create builders anywhere with just one overload:
// At the start or end of a BB:
Builder.new(At_end bb)
Builder.new(bb.begin)
// Before or after a given instructi...
2008 May 10
4
[LLVMdev] Python bindings available.
Hi all,
I'd like to announce the availability of Python bindings for LLVM.
It is built over llvm-c, and currently exposes enough APIs to build an
in-memory IR (and dump it!). It needs LLVM 2.3 latest and Python 2.5
(2.4 should be sufficient, but I haven't tested). Tested only on
Linux/i386.
Would love to hear your comments.
[Needless to say, it's all work in progress, but mostly it