Skip to content

Update _emitfulltype for Bytes to export lengths if Paths are passed in#1031

Open
wbarnha wants to merge 2 commits intoconstruct:masterfrom
wbarnha:patch-2
Open

Update _emitfulltype for Bytes to export lengths if Paths are passed in#1031
wbarnha wants to merge 2 commits intoconstruct:masterfrom
wbarnha:patch-2

Conversation

@wbarnha
Copy link

@wbarnha wbarnha commented Apr 26, 2023

While exporting Bytes(this.insert_name_here), I encountered cannot represent an object: this['insert_name_here'] since _emitfulltype can't support Path objects being passed in as lengths. While this isn't the most graceful solution, I figured it'd be worth opening discussion on this. Are there any other classes that have similar methods that should have their _emitfulltype methods needing to be similarly updated as well?

wbarnha added 2 commits April 26, 2023 11:05
…in as lengths

While exporting `Bytes(this.insert_name_here)`, I encountered `cannot represent an object: this['insert_name_here']` since `_emitfulltype` can't support `Path` objects being passed in as lengths. While this isn't the most graceful solution, I figured it'd be worth opening discussion on this. Are there any other classes that have similar methods that should have their `_emitfulltype` methods needing to be similarly updated as well?
@arekbulski
Copy link
Member

I will not accept this PR for two simple reasons. First being, I totally dont understand how KSY files work. Unless the grey cat on the tree himself sanctions this, then maybe. Second is its hackey as heck.

@wbarnha
Copy link
Author

wbarnha commented Apr 27, 2023

I totally agree at how disgusting it is, I'd be happy to change that when needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants