From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 329501F4CC for ; Thu, 9 Jan 2025 15:55:48 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=Lu67s21Q; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=KJqGf0Cn; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1736438145; bh=jtuCG4eyfRVOvTOusnRTMHAtplqoKi0zcsLFkV5Syeg=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=Lu67s21QAqLOeFo5s9XLcdg9jmmFxJgp0eOhxuSRjPaLwuwkUYYywwE7UTxnEHNEN S1X/BwuOODIEEq1yArUu1NddFENRUIX9a+T3sqwWjxZy0vU+XAeqlgWoSSUJmBRtEG 52NK9ADvq+FLvKBNPQQ3jovYiFHqJvYajwg9jzDA= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id B9B36467EB for ; Thu, 9 Jan 2025 15:55:45 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=KJqGf0Cn; dkim-atps=neutral Received: from s.wrqvtbkv.outbound-mail.sendgrid.net (s.wrqvtbkv.outbound-mail.sendgrid.net [149.72.123.24]) by nue.mailmanlists.eu (Postfix) with ESMTPS id A579E44A0E for ; Thu, 9 Jan 2025 15:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=GdmfFw/eh8OGfqfnCtzuTf36Z8jh4oweUnlht0/JGOo=; b=KJqGf0Cnk4CNVgeDNEtf7L+s8zADUgbkIvSUWNX/I/5XjuSmPYa+MNZDoeFm29/VFe8o qTuIgRbRDYyoOjHS2h/b+nfFBtSDSOqo34EntBDPTFCaMyDt0PBdp1Lq/027Ov5ybc29ev MdfknIwG1af53ok74FOAR4xXSlRImKrAqJ/qNuct0f/tjifWSqFz3W2ZXqxdea4GAYExqk 2NbDi0C5SCMtnCZCS4+o5BoW3e7e9jiuruJcwbHAznhMHYJ59SSKXgoalwNVZxc2GpTgtD AvdDLmiVYr/DqSlPD+o0AWmgO16cO6Iv5bymco6F0r3iy4DsCkK1hXZKeM9qEUbQ== Received: by recvd-84b546689d-th9ln with SMTP id recvd-84b546689d-th9ln-1-677FF17A-9 2025-01-09 15:55:38.08598165 +0000 UTC m=+4818784.762645371 Received: from herokuapp.com (unknown) by geopod-ismtpd-21 (SG) with ESMTP id WqIMERb1T86QdzfYwvAuLw for ; Thu, 09 Jan 2025 15:55:37.998 +0000 (UTC) Date: Thu, 09 Jan 2025 15:55:38 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 6012 X-Redmine-Issue-Author: rogerdpack X-Redmine-Issue-Assignee: nobu X-Redmine-Issue-Priority: Normal X-Redmine-Sender: Dan0042 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 97265 X-SG-EID: =?us-ascii?Q?u001=2EHy4LB1bizMxDg=2Fk6r7dYDS9qUDe3jZN8DIPm4OS+F86l7XdLFEAVX=2F2lh?= =?us-ascii?Q?z0Jj=2Ft7J6DgKnq5Qaf6Ba4+egck=2FoKuUHMa9Cn6?= =?us-ascii?Q?7D+EQ8vUJVuF77vKhk=2FFKB5qUGQ+PGp9zhzAm+v?= =?us-ascii?Q?tO8lgOSg6BRevguznWTRucUGYg8vpf5yhz10Tj8?= =?us-ascii?Q?E=2FFAy3QNTsVus6EiBWXKmMNFlKXlrq7ILtAdchq?= =?us-ascii?Q?Ey6vlIOLI1wH3nKTgSJ5aLCyI+Dk6lpSmRgD0fy?= =?us-ascii?Q?o3RlHzCAlc3L1VkrjFBzAhAxxw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: ZIE5NDCGWI4RWRGKGOA4GMYDRTBFD3XW X-Message-ID-Hash: ZIE5NDCGWI4RWRGKGOA4GMYDRTBFD3XW X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:120581] [Ruby master Feature#6012] Proc#source_location also return the column List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "Dan0042 (Daniel DeLorme) via ruby-core" Cc: "Dan0042 (Daniel DeLorme)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #6012 has been updated by Dan0042 (Daniel DeLorme). mame (Yusuke Endoh) wrote in #note-25: > Matz was negative neither on adding a new class like Ruby::CodeLocation for this purpose Any idea why? Because it seems like the "obviously correct" design so I'm curious why it was decided against. ---------------------------------------- Feature #6012: Proc#source_location also return the column https://bugs.ruby-lang.org/issues/6012#change-111406 * Author: rogerdpack (Roger Pack) * Status: Closed * Assignee: nobu (Nobuyoshi Nakada) ---------------------------------------- As originally suggested in http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/42418 Suggestion/feature request: have #source_location also return the beginning column where it was defined. ["test.rb", 8, 33] Thanks! -roger- -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/