Skip to content

Fix statement about evaluation strategy of methods #1425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ Es gibt allerdings deutlich mehr Unterschiede als Gemeinsamkeiten zwischen Ruby
irrelevant, dementsprechend gibt es keine Pointer und kein `sizeof`.
* Es gibt keine `enum`s. Es gibt zwar *Symbole*, die aber keinen
implizit zugeordneten Zahlenwert haben.
* Parameter von Methoden (oder Funktionen) werden immer als Referenz
übergeben.
* Parameter von Methoden (oder Funktionen) werden immer als Wertparameter
übergeben, wobei die Werte selbst stets Referenzen sind
* Lokale Variablen werden nicht explizit deklariert. Es wird einfach ein
typenloser Name vergeben und Wert zugewiesen, wo gerade eine lokale
Variable benötigt wird.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ Unlike C, in Ruby,...
* There’s no `#define`. Just use constants instead.
* All variables live on the heap. Further, you don’t need to free them
yourself—the garbage collector takes care of that.
* Arguments to methods (i.e. functions) are passed by reference, not by
value.
* Arguments to methods (i.e. functions) are passed by value, where the
values are always references
* It’s `require 'foo'` instead of `#include <foo>` or `#include "foo"`.
* You cannot drop down to assembly.
* There’s no semicolons ending lines.
Expand Down