Beef
Beef copied to clipboard
Beef Programming Language
This example fails to compile: ``` public ContainmentType Contains(BoundingBox @box) { var @box; Contains(ref @box, var result); return result; } ```
The following code crashes the IDE when compiling a `Debug` build. Fails correctly in `Release`. Tested in latest nightly. ```beef using System; namespace Clean; struct Content where TSize : const...
The code below causes the error mentioned in the issue title. ``` class ConsoleWrite { private String mMsg = new .(); public this(String msg) { mMsg.Set(msg); } public void ReturnValueDiscarded()...
(Bug found on `aarch64` Switch build) We have this function which uses a for loop with a generic enumerator `Layer.ForEach()`. That enumerator implements `public Result GetNext() mut`. On `aarch64`, it...
(Bug encountered on `aarch64` Switch build) I have this struct `ABIStr` that is defined as such:  --- If I call a C++ API function on the C++ side, the...
The code below doesn't compile, but looks like it should since it works if you use `this.` to call the `Test2` mixin inside `Test3` mixin. ```cs class TestMixin { public...
I think that could be useful because it would allow static local variables to be thread static, example: ```cs public static void Main() { [ThreadStatic] static int TestThreadStatic; } ```
The code below doesn't compile because of an "Identifier not found" error. ```cs public static void Main() { Object test = "abc"; void CapTest() { [Comptime] void Emit() { Compiler.MixinRoot("test.GetType();");...
The code below causes a crash in the method "ConstantToCurrent" ```cs public static void TestCrash(Object obj = "") { } public static void Main() { TestCrash(); } ``` Tested with:...
I've been trying to implement Base64 Encoding/Decoding since I couldn't find any existing solution for Beef. It allows you to decode/encode between base64 and String/List. Hoping this could be useful....