Khimenko Victor wrote:
[...] pstr:=new(string,100:shm_alloc(pool1)); or pstr:=new(string,100:shm_alloc:pool1); but what's definition of shm_alloc ? It's function shm_alloc(size:size_t;var pool:PPool):pointer; TWO arguments, not one! We can invite allocator function (akin to constructor function) but IMHO it'll be overkill. So second version is not only easier to implement but less error-prone as well (this is NOT straight call of ahm_alloc, it's special construct so even shm_call has two paramenters it's Ok to have only one in special construct).
So the second alternative seems to be the best suggestion up to now.
D'accord everybody?
P.S. IMO any syntax will look ugly at first but after few months of active usage will look like most natural thing to do :-) This is how human's mind is done.
;-)
Peter