Skip to content

Commit c42eed3

Browse files
committed
1 parent 2a0b42a commit c42eed3

File tree

4 files changed

+102
-95
lines changed

4 files changed

+102
-95
lines changed

4.x/changelog/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3919,6 +3919,13 @@ <h2 id="492-unreleased">4.9.2 (unreleased)<a class="headerlink" href="#492-unrel
39193919
* Add support for <code>std::ostream</code>, <code>std::ostringstream</code>, and <code>std::ofstream</code>. Ruby can write to C++ streams and pass them to C++ functions. Standard streams are exposed as <code>Std::COUT</code> and <code>Std::CERR</code>.</p>
39203920
<p>Internal:
39213921
* Refactor type handling by merging <code>TypeMapper</code> into <code>TypeDetail</code> and simplifying class hierarchy</p>
3922+
<p>Incomptatible Changes:
3923+
* Rice converts Ruby blocks to procs. Thus if you have a method that expects a block, you must add
3924+
a VALUE parameter and tell Rice it is a value. For example:</p>
3925+
<p>define_method("my_method", <a href="VALUE self, VALUE proc"></a>
3926+
{
3927+
}, Arg("proc").setValue())</p>
3928+
<p>Think of this as similar to how you would capture a block in Ruby using the &amp;block syntax.</p>
39223929
<h2 id="491-2026-01-04">4.9.1 (2026-01-04)<a class="headerlink" href="#491-2026-01-04" title="Permanent link">&para;</a></h2>
39233930
<p>This release focuses on improving memory management for STL containers and attribute setters.</p>
39243931
<p>Enhancements:

4.x/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)