D isn't the only language with janky closure semantics
H. S. Teoh
hsteoh at qfbox.info
Sat Aug 30 16:34:40 UTC 2025
On Sat, Aug 30, 2025 at 12:08:15PM +0000, Dom DiSc via Digitalmars-d wrote:
> On Saturday, 30 August 2025 at 11:40:38 UTC, user1234 wrote:
> > On Friday, 29 August 2025 at 22:28:17 UTC, H. S. Teoh wrote:
> > > I happen to be working on some JS today (gasp!), and ran into this
> > > odd behaviour.
[...]
> > This https://github.com/dlang/dmd/issues/18108, right ?
>
> duplicate of https://github.com/dlang/dmd/issues/19929 - so it's
> discussed since years. :-(
I'm well aware of this issue in D, and of how long it's been around. It
was just surprising that JS exhibits the same behaviour.
T
--
An imaginary friend squared is a real enemy.
More information about the Digitalmars-d
mailing list