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 -- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-19990118 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: ftp://ftp.gerwinski.de/pub/keys/ - AntiSpam: http://spam.abuse.net