[#83773] [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769 — usa@...
Issue #14108 has been updated by usa (Usaku NAKAMURA).
9 messages
2017/11/15
[#83774] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— Eric Wong <normalperson@...>
2017/11/15
usa@garbagecollect.jp wrote:
[#83775] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— "U.NAKAMURA" <usa@...>
2017/11/15
Hi, Eric
[#83779] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— Eric Wong <normalperson@...>
2017/11/15
"U.NAKAMURA" <usa@garbagecollect.jp> wrote:
[#83781] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— "U.NAKAMURA" <usa@...>
2017/11/15
Hi, Eric,
[#83782] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— Eric Wong <normalperson@...>
2017/11/15
IlUuTkFLQU1VUkEiIDx1c2FAZ2FyYmFnZWNvbGxlY3QuanA+IHdyb3RlOgo+IEhpLCBFcmljLAo+
[ruby-core:83919] [Ruby trunk Feature#4007][Rejected] numeric literal syntax sugar
From:
mame@...
Date:
2017-11-28 13:51:37 UTC
List:
ruby-core #83919
Issue #4007 has been updated by mame (Yusuke Endoh).
Status changed from Assigned to Rejected
Some suffixes for number literals, such as `4i` and `4r`, were introduced as a custom syntax. Please reopen if you still want a general framework for number suffixes.
----------------------------------------
Feature #4007: numeric literal syntax sugar
https://bugs.ruby-lang.org/issues/4007#change-67974
* Author: neleai (Ondrej Bilka)
* Status: Rejected
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Target version: Next Major
----------------------------------------
=begin
Hello
As I looked to C++ extension suffing numeric literals.
My proposal is make . in method call of numeric literal optional so we can for example write
4i instead 4.i
Another application is making Time manipulations more readable like
deadline=Time.now + 2hours
Here is patch
It should be more restrictive to disallow traps like 0xadup
Index: parse.y
===================================================================
--- parse.y (revision 29647)
+++ parse.y (working copy)
@@ -3592,6 +3592,16 @@
$$ = method_arg(dispatch1(fcall, $1), $2);
%*/
}
+ | numeric tIDENTIFIER opt_paren_args
+ {
+ /*%%%*/
+ $$ = NEW_CALL($1, $2, $3);
+ fixpos($$, $1);
+ /*%
+ $$ = dispatch3(call, $1, ripper_id2sym('.'), $2);
+ $$ = method_optarg($$, $3);
+ %*/
+ }
| primary_value '.' operation2 opt_paren_args
{
/*%%%*/
=end
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>