Skip to content

Revise list of not overloadable operators #1382

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

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion bg/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ end
Оператоите, които следват не са методи и поради това не могат да бъдат предефинирани:

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

В допълнение `+=`, `*=` и т.н са съкращения за `var = var + other_var`,
Expand Down
2 changes: 1 addition & 1 deletion de/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ Die folgenden Operatoren sind *kein* syntaktischer Zucker. Sie sind
keine Methoden, und können nicht umdefiniert werden:

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

Zudem sind `+=`, `*=`, usw. nur Abkürzungen für `foo = foo + bar`,
Expand Down
2 changes: 1 addition & 1 deletion en/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ To define the unary + and - (think +1 and -2), you must define the `+@` and
though. They are not methods, and cannot be redefined:

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

In addition, `+=`, `*=` etc. are just abbreviations for `var = var + other_var`,
Expand Down
2 changes: 1 addition & 1 deletion es/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ Sin embargo, los siguientes operadores **no** son simplificaciones
sintácticas. No son métodos, y no pueden ser redefinidos:

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

Además, `+=`, `*=` etc. sólo son abreviaciones para `var = var + otra_var`,
Expand Down
2 changes: 1 addition & 1 deletion fr/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ Les opérateurs ci-dessous ne sont pas des méthodes, et ne peuvent pas
être modifiés :

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

Par ailleurs, `+=`, `*=`, etc. ne sont que des raccourcis pour
Expand Down
2 changes: 1 addition & 1 deletion id/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ Operator-operator dibawah ini bukan metode dan tidak dapat didefinisikan
ulang:

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

Tambahan, `+=`, `*=` dan lain sebagainya hanyalah singkatan untuk
Expand Down
2 changes: 1 addition & 1 deletion it/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ I seguenti operatori però **non** sono zucchero sintattico: non sono
metodi e non possono essere ridefiniti:

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

Inoltre, `+=`, `*=` ecc. sono solo abbreviazioni di
Expand Down
2 changes: 1 addition & 1 deletion ja/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ C++の`operator+`などは必要ありません。
これらはメソッドではないので、再定義できません。

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

加えて`+=`、`*=`などは`var = var + other_var`、`var = var * other_var`
Expand Down
2 changes: 1 addition & 1 deletion ko/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ C++의 `operator+` 같은 건 필요 없습니다.
아니며 재정의할 수 없습니다.

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

덧붙여, `+=`, `*=` 등등은 `var = var + other_var`, `var = var * other_var`
Expand Down
2 changes: 1 addition & 1 deletion pl/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ odpowiednio metody `+@` i `-@`. Poniższe operatory jednak
przedefiniować.

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

Dodatkowo, `+=`, `*=` etc. są po prostu skrótami dla `var = var + other_var`,
Expand Down
2 changes: 1 addition & 1 deletion pt/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ Os operadores abaixo não são, no entanto, açúcar sintáctico.Não são
métodos, e não podem ser redifinidos:

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

Como `+=`, `*=` etc. são somente abreviações para `var = var + outra_var`,
Expand Down
2 changes: 1 addition & 1 deletion ru/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ end
Они не являются методами и не могут быть переопределены:

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

В дополнение к этому, `+=`, `*=` и т.д. - это всего лишь сокращения для
Expand Down
2 changes: 1 addition & 1 deletion tr/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ Aşağıdaki operatörler bu şekilde değerlendirilmezler. Bunlar metod
değildir ve tekrar tanımlanamazlar:

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

Ek olarak, `+=`, `*=` vb. şunların kısaltmasıdır : `var = var + other_var`,
Expand Down
2 changes: 1 addition & 1 deletion vi/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ Các toán tử dưới đây **không** có cú pháp. Nó không phải là c
phương thức, và không thể tái định nghĩa:

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

Thêm vào đó, `+=`, `*=` v.v. chỉ là cách viết tắt cho `var = var + other_var`,
Expand Down
2 changes: 1 addition & 1 deletion zh_cn/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ end
定义了 `[]` 和 `[]=` 方法后,你甚至拥有了数组风格的访问方法。要想定义一元操作符 + 和 -,你也必须定义相应的 `+@` 和 `-@` 方法。下面的操作符 **不是** 语法糖,它们不是方法,无法重新被定义:

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

此外,`+=`、`*=` 等类似操作符只是 `var = var + other_var`、 `var = var * other_var`等的简写。因此也无法重新被定义。
Expand Down
2 changes: 1 addition & 1 deletion zh_tw/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ end
以下的操作符則**不是**語法包裝。它們不是方法,不能被覆寫定義:

{% highlight ruby %}
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
=, .., ..., not, &&, and, ||, or, ::
{% endhighlight %}

此外 `+=`, `*=` 等只是 `var = var + other_var` 跟 `var = var * other_var`
Expand Down