August 16, 2016
https://issues.dlang.org/show_bug.cgi?id=16394

--- Comment #19 from Steven Schveighoffer <schveiguy@yahoo.com> ---
(In reply to Eyal from comment #17)
> Yeah, I've since figured it out - but was surprised because it is inconsistent with code blocks like: x=>x+1 which is inferred to be a function, not a delegate.  So I expected structs to be similarly inferred to static structs when they do not actually need the context ptr.

I was with you on that recently when dealing with Voldemort types. But static must be added to make it a non-nested struct, even if you don't use any of the function locals.

Worth an enhancement request probably.

--
August 16, 2016
https://issues.dlang.org/show_bug.cgi?id=16394

--- Comment #20 from Eyal <eyal@weka.io> ---
It could be nice to add a setInit method that sets a given buffer to the initial value, with no corner cases at all.

--
August 16, 2016
https://issues.dlang.org/show_bug.cgi?id=16394

--- Comment #21 from Steven Schveighoffer <schveiguy@yahoo.com> ---
(In reply to Eyal from comment #20)
> It could be nice to add a setInit method that sets a given buffer to the initial value, with no corner cases at all.

Agreed. I was thinking the same thing.

--
August 16, 2016
https://issues.dlang.org/show_bug.cgi?id=16394

Ali Cehreli <acehreli@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |industry
                 CC|                            |acehreli@yahoo.com

--
August 17, 2016
https://issues.dlang.org/show_bug.cgi?id=16394

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--
August 30, 2016
https://issues.dlang.org/show_bug.cgi?id=16394

--- Comment #22 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/druntime

https://github.com/dlang/druntime/commit/d79299255878b71ed1115f0cacd93938ee02930e Fix issue 16394 -- document the intiializer function behavior correctly.

https://github.com/dlang/druntime/commit/de92ad402d6132028148571adb1bfa353f0d599e Merge pull request #1634 from schveiguy/fix16394

Fix issue 16394 -- document the intializer function behavior correctly.

--
August 30, 2016
https://issues.dlang.org/show_bug.cgi?id=16394

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
1 2 3
Next ›   Last »