Brian Fiete

Results 102 comments of Brian Fiete

Well that's strange. In File \ Preferences \ Settings, what is the key binding for Reformat Document for you?

@wilsonk If you have built from source... if you step into `AddMenuItem(advancedEditMenu, "Comment Block", "Comment Block");` in `IDEApp.bf`... Does `keyStr` get set to `#Ctrl+K, Ctrl+C`?

There's certainly some better ways to do more ergonomic ref counting. I'm thinking we could have a ref-counting generic wrapper class. - We could allow overriding a `*` unary operator,...

ALSO- with comptime there could even be an attribute that adds in ref counting data + methods to a class instead of deriving from `System.RefCounted`. Just another option.

I have an initial implementation of a better ref counting solution, along the lines I described at https://github.com/beefytech/Beef/issues/1169#issuecomment-950958673 ```C# RefCounted rcStr = .Create(1024); defer rcStr.Release(); ... rcStr->Append("Abc"); ``` `RefCounted.Create(1024);` performs...

Automatic reference counting requires either deep holistic language support (ie: Swift/Python) or it requires certain C++ language features (copy constructors, assignment operator overloads, move constructors, etc) so that they can...

I wanted to leave the issue open as a reference to others who may be interested in this discussion in the future. Also, the one who called the lack of...

It would certainly be a massively powerful comptime system that would allow that! Fundamentally, though, the biggest issue is is treating all composite data as POD - you could no...

Well, for starters, we have destructors so things like StringReader don't need to be disposed. Second, we have defer so you can do `defer reader.Dispose()`. I'm not sure I'm feeling...

It took C# 20 years to add this feature. I think if they had a "defer" already then this would not have been added... Maybe if there was a "defer"...