ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
From: mame@ruby-lang.org
To: ruby-dev@ruby-lang.org
Subject: [ruby-dev:50976] [Ruby master Feature#2323] "Z".."Z".succが空
Date: Sat, 12 Dec 2020 04:17:57 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-89188.20201212041756.826@ruby-lang.org> (raw)
In-Reply-To: <redmine.issue-2323.20091102161937.826@ruby-lang.org>

Issue #2323 has been updated by mame (Yusuke Endoh).

Status changed from Assigned to Closed

#13663 でほぼ同様のチケットが close されたのでこちらも閉じます。

----------------------------------------
Feature #2323: "Z".."Z".succが空
https://bugs.ruby-lang.org/issues/2323#change-89188

* Author: hasari (Hiro Asari)
* Status: Closed
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
=begin
 surfboard:~$ ruby1.9 -v; ruby1.9 -e 'p ("Z".."Z".succ); p ("Z".."Z".succ).to_a'
 ruby 1.9.2dev (2009-11-02 trunk 25625) [x86_64-darwin10.0.0]
 "Z".."AA"
 []
 
 "Z".succではなくてもうちょっと”離れた”ヤツをRangeの終わりとして指定すると"AA"はしっかりと入っています。
 
 surfboard:~$ ruby1.9 -e 'p ("Z".."ZA").include? "Z".succ'
 true
 
 でも半端な”離れ”方ではいけません。
 
 surfboard:~$ ruby1.9 -e 'p ("Z".."CA").include? "Z".succ'
 false
 
 to_aを介しても同様です。
 
 surfboard:~$ ruby1.9 -e 'p ("Z".."ZA").to_a.include? "Z".succ'
 true
 surfboard:~$ ruby1.9 -e 'p ("Z".."CA").to_a.include? "Z".succ'
 false
=end




-- 
https://bugs.ruby-lang.org/

           reply	other threads:[~2020-12-12  4:18 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <redmine.issue-2323.20091102161937.826@ruby-lang.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-89188.20201212041756.826@ruby-lang.org \
    --to=mame@ruby-lang.org \
    --cc=ruby-dev@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).