[#71439] [Ruby trunk - Feature #11339] [PATCH] io.c: avoid kwarg parsing in C API — matz@...
Issue #11339 has been updated by Yukihiro Matsumoto.
7 messages
2015/11/11
[#71473] Re: [Ruby trunk - Feature #11339] [PATCH] io.c: avoid kwarg parsing in C API
— Eric Wong <normalperson@...>
2015/11/13
Entire series for sockets
[#71450] Ruby 2.3.0-preview1 Released — "NARUSE, Yui" <naruse@...>
Hi,
5 messages
2015/11/11
[#71617] [Ruby trunk - Feature #11664] [PATCH] introduce rb_autoload_value to replace rb_autoload — nobu@...
Issue #11664 has been updated by Nobuyoshi Nakada.
3 messages
2015/11/20
[#71721] [Ruby trunk - Feature #11741] Migrate Ruby to Git from Subversion — me@...
Issue #11741 has been updated by Jon Moss.
4 messages
2015/11/28
[ruby-core:71648] [Ruby trunk - Feature #11181] Add a line directive to Ruby
From:
duerst@...
Date:
2015-11-24 06:20:42 UTC
List:
ruby-core #71648
Issue #11181 has been updated by Martin D端rst.
Assignee changed from ruby-core to Yukihiro Matsumoto
I have changed the assignee from ruby-core (all committers) to Matz to make sure this doesn't show up in everybody's todo list.
----------------------------------------
Feature #11181: Add a line directive to Ruby
https://bugs.ruby-lang.org/issues/11181#change-55051
* Author: Allen Morris
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
Add a __line directive__ to Ruby
```
#line {nn} ["filename"]
```
This is done by creating a array of filenames and using the upper bits of the line_number to determine the current filename. The original filename is in position 0.
An extra node is added by the parser that informs the compiler of the filenames so the backtrace code can also use the correct file names.
The __\_\_LINE____ and __\_\_FILE____ _constants_ are updated and compile time warnings are also effected.
There is a pull request at https://github.com/ruby/ruby/pull/911
The patch does not have any affect on current programs unless a line matching '#\s*line \d+(\s+"(.*)")?\s*$' is found in the ruby source code.
More tests need to be written before this change sould be applied.
Use case:
This is helpful for debugging any generated code but is particularlly helpful for literate programming using Noweb.
--
https://bugs.ruby-lang.org/