Using alloca?
Benjamin Thaut
code at benjamin-thaut.de
Fri Jun 28 10:55:15 PDT 2013
Am 28.06.2013 06:42, schrieb Maxime Chevalier-Boisvert:
> I'd like to stack-allocate an array that will be dynamically sized. Is
> alloca somewhere in the standard D library? If so, what should I import
> to have access to it?
The last time I checked alloca did not work well together with
execptions. Whenever a exception whas thrown thourgh a stack frame which
used alloca the app would crash. (on dmd Windows 64 bit, which uses the
same exception mechanism as the linux versions of dmd)
--
Kind Regards
Benjamin Thaut
More information about the Digitalmars-d
mailing list