2 Beef Tips
Booklordofthedings edited this page 2025-06-15 21:06:05 +02:00

Beef quick tips

Memory management

  • Memory that is passed between boundaries should be managed by the caller DoSomething(new String());
  • Inside of a specific boundary memory can be managed as wanted
  • Avoid heap allocations if possible
  • Avoid scope allocations in recursive functionality

Attach thing to the lifetime of an object

class Example
{
	public String Value = new .() ~ delete _;
}