❔ Unable to box custom value type
Hiya, I'm writing a library to interact with MIDI files. I'm laying down some framework stuff (seven bit numbers, Variable Length Quantities [VLQ] etc.), the VLQ's and seven bit numbers are implemented as structs currently.
This is the boxing allocation I'm trying to use:
Full disclosure, I'm pretty new to using structs. I'd normally just throw it into a class but figure I should probably branch out to something better.
Boxing allocation: conversion from 'VariableLengthQuantity' to 'object' requires boxing of value type
5 Replies
(also goes without saying this isn't refactored or anything yet, I literally just wrote it)
Probably something related to (customized or modified) compiler/framework/plugin/whatever.
https://discord.com/channels/143867839282020352/251386218351165441/1100797762901131376
Here it compiles fine
basically, i am little cat#5356
REPL Result: Success
Result: Foo
Quoted by
<@!509301565694279680> from #bot-spam (click here)
Compile: 481.937ms | Execution: 30.878ms | React with ❌ to remove this embed.
huh, weird
because i was thinking like "this is fine, it's boxed, stop complaining" but yeah that makes sense that it's something in my env
tysm <33
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.