Skip to content

Commit bcb8d63

Browse files
Robin Neumannstomar
Robin Neumann
authored andcommitted
Fix statement about evaluation strategy of methods (en, de) (ruby#1425)
1 parent 8cc7ec8 commit bcb8d63

File tree

2 files changed

+4
-4
lines changed
  • de/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp
  • en/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp

2 files changed

+4
-4
lines changed

de/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ Es gibt allerdings deutlich mehr Unterschiede als Gemeinsamkeiten zwischen Ruby
113113
irrelevant, dementsprechend gibt es keine Pointer und kein `sizeof`.
114114
* Es gibt keine `enum`s. Es gibt zwar *Symbole*, die aber keinen
115115
implizit zugeordneten Zahlenwert haben.
116-
* Parameter von Methoden (oder Funktionen) werden immer als Referenz
117-
übergeben.
116+
* Parameter von Methoden (oder Funktionen) werden immer als Wertparameter
117+
übergeben, wobei die Werte selbst stets Referenzen sind
118118
* Lokale Variablen werden nicht explizit deklariert. Es wird einfach ein
119119
typenloser Name vergeben und Wert zugewiesen, wo gerade eine lokale
120120
Variable benötigt wird.

en/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ Unlike C, in Ruby,...
8181
* There’s no `#define`. Just use constants instead.
8282
* All variables live on the heap. Further, you don’t need to free them
8383
yourself—the garbage collector takes care of that.
84-
* Arguments to methods (i.e. functions) are passed by reference, not by
85-
value.
84+
* Arguments to methods (i.e. functions) are passed by value, where the
85+
values are always references
8686
* It’s `require 'foo'` instead of `#include <foo>` or `#include "foo"`.
8787
* You cannot drop down to assembly.
8888
* There’s no semicolons ending lines.

0 commit comments

Comments
 (0)