scoped allocations

Denis Shelomovskij verylonglogin.reg at gmail.com
Thu Nov 28 09:11:57 PST 2013


27.11.2013 3:33, Namespace пишет:
> First of all: I apologize for my bad english.
>
> In the last few weeks I searched for a way to allocate nicely temporary
> buffer of unknown lengths.

You can use `unstd.memory.allocation.tempAlloc` [1]. Also there is 
`unstd.c.string.tempCString` [2] for common case of temporary C strings.

[1] 
http://denis-sh.bitbucket.org/unstandard/unstd.memory.allocation.html#tempAlloc
[2] http://denis-sh.bitbucket.org/unstandard/unstd.c.string.html#tempCString

-- 
Денис В. Шеломовский
Denis V. Shelomovskij


More information about the Digitalmars-d mailing list