Hanmac (Hans Mackowiak)
- Login: Hanmac
- Email: hanmac@gmx.de
- Registered on: 05/14/2011
- Last connection: 02/11/2021
Issues
open | closed | Total | |
---|---|---|---|
Assigned issues | 0 | 0 | 0 |
Reported issues | 8 | 24 | 32 |
Activity
02/05/2021
-
01:27 PM Ruby master Feature #17608: Compact and sum in one step
- you can use that `nil.to_i` returns 0
`a.sum(&:to_i) #=> 6`
09/09/2020
-
07:24 AM Ruby master Bug #15409: OpenStruct error when attribute is called 'method'
- marcandre (Marc-Andre Lafortune) wrote in #note-9:
> I opened a PR that resolves this: https://github.com/ruby/ostruc...
08/31/2020
-
07:43 PM Ruby master Feature #14394: Class.descendants
- More like:
```ruby
class A
end
x = Class.new(A)
y = x.new
```
~~How does the GC handle such classes?
Will they ge... -
09:02 AM Ruby master Feature #14394: Class.descendants
- @fatkodima
how does `rb_class_foreach_subclass` handle anonymous classes?
if it would add them, how about adding a ...
08/06/2020
-
02:34 PM Ruby master Bug #17105: A single `return` can return to two different places in a proc inside a lambda inside a method
- i think this is by design:
https://www.rubyguides.com/2016/02/ruby-procs-and-lambdas/
> A lambda will return no...
07/31/2020
-
07:34 AM Ruby master Bug #17093: attr_accessor works strange
- This:
```ruby
if type.nil?
type = 'default'
end
```
is different from this:
```ruby
type = 'default' if type.nil?...
07/22/2020
-
07:41 AM Ruby master Bug #17023: How to prevent String memory to be relocated in ruby-ffi
- the problem there is that ruby can't know how long the C lib is going to use the String. Depending on the C Function,...
07/03/2020
-
01:31 PM Ruby master Feature #16986: Anonymous Struct literal
- the problem i have with that is that each time it creates a (cached) struct class.
after taking so long to make fr...
07/02/2020
-
08:44 AM Ruby master Feature #16986: Anonymous Struct literal
i think this is more of a confusing feature
IF `${a: 1, b: 2}` is like `Struct.new(:a, :b).new(1, 2)` then my gu...
03/03/2020
-
02:27 PM Ruby master Feature #16667: Allow parameters to Symbol#to_proc and Method#to_proc
- @jgomo3 i found my old Symbol#call code
~~~ ruby
class Symbol
class SymbolHelper
def initialize(obj,met...
Also available in: Atom