Skip to content

Revisit VLAs? #452

@thomwiggers

Description

@thomwiggers

Variable-length arrays are kind of annoying not to have. We might extend compat.h with a macro that implements VLAs on platforms that support them, and uses alloca on platforms that don't. See also for example sphincs/sphincsplus#26.

Of course, that might be prohibitive for any applications that don't have alloca. But the way we currently work around VLAs in SPHINCS+ is extremely terrible for legibility as well.

Do we want to allow VLAs, using a macro so that they will work on MSVC?

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions