search for: a_class

Displaying 5 results from an estimated 5 matches for "a_class".

Did you mean: r_class
2011 Jul 25
6
What does using a lambda in rspec tests accomplish?
Here is the code in question: describe UsersController do render_views … … describe "POST to ''create'' action" do describe "failure" do before(:each) do @attr = { :name => '''', :email => '''', :password => '''', :password_confirmation =>
2007 Apr 02
0
[939] trunk/wxsugar/lib/wx_sugar/wx_classes/window.rb: Add has_style? method, allow find_window to work even if C++ method
...18,7 @@ </span><span class="cx"> # # Example - find a StaticText with a label matching /foo/ </span><span class="cx"> # a_frame.find_window(Wx::StaticText) { | tx | tx.label =~ /foo/ } </span><span class="cx"> def find_window(a_class = Wx::Window, &block) </span><del>- descendants.grep(a_class).detect(&block) </del><ins>+ get_descendants.grep(a_class).detect(&block) </ins><span class="cx"> end </span><span class="cx"> </span><span...
2006 Dec 30
0
[812] trunk/wxsugar/lib/wx_sugar/wx_classes/window.rb: Added find_window and descendants methods
...(or its subclasses) only - this can be useful if the search + # specification calls methods that are only defined for certain + # classes. + # + # # Example - find a StaticText with a label matching /foo/ + # a_frame.find_window(Wx::StaticText) { | tx | tx.label =~ /foo/ } + def find_window(a_class = Wx::Window, &block) + descendants.grep(a_class).detect(&block) + end + </ins><span class="cx"> # Returns the window''s current size as a two element array </span><span class="cx"> def get_size_xy </span><span class=&quot...
2016 Jul 12
2
RFC: Strong GC References in LLVM
...; // Offset 16 } void h(B b) { Object o = b; hC = b.oField.hashCode(); if (o instanceof A) { print(((A)o).lField + 20); } } it is reasonable to optimize "h" to: void h(i8* b) { GCREF o = *(b + 16) long l = *(b + 16) long l2 = l + 20; if (is_instance_of(b, A_class)) { print(l2) } } Above the use of l in "l + 20" has to be fine, and not UB. >> ## Implementation Issues& Impact to LLVM >> >> This is a proposed path forward to implementing GCREF in LLVM. The >> caveat mentioned at the start of the email (ever...
2016 Jun 24
6
RFC: Strong GC References in LLVM
This is a proposal to add strong GC reference types to LLVM. We have some local (downstream) patches that are needed to prevent LLVM's optimizer from making transforms that are problematic in the presence of a precise relocating GC. Adding a notion of a strong GC reference to LLVM will let us upstream these patches in a principled manner, and will act as a measure to avoid new problematic