From dcf8e5207e7ef39685f6584a8df157ccff564c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Sat, 17 Feb 1996 23:42:20 +0100 Subject: [PATCH] no more compact arrays Rev: doc/builtin/allocate:1.4 --- doc/builtin/allocate | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/doc/builtin/allocate b/doc/builtin/allocate index 4e6c716d0f..90ed148de5 100644 --- a/doc/builtin/allocate +++ b/doc/builtin/allocate @@ -2,21 +2,13 @@ NAME allocate - allocate an array SYNTAX - mixed *allocate(int size, [ string type ]); + mixed *allocate(int size); DESCRIPTION - Allocate an array of size elements. Optionally, write what type you - want to store in the array in the second argument as a string. - Note that the type given in this string should be simple, instead - of writing "int ***" just write "array". + Allocate an array of size elements and initialize them to zero. EXAMPLES mixed *a=allocate(17); - int *b=allocate(17, "int"); - int **c=allocate(17, "array"); - mapping *c=allocate(17, "mapping"); - array (list (int)) c=allocate(17, "list"); - array (string) c=allocate(17, "string"); NOTA BENE Arrays are dynamically allocated there is no need to declare them -- GitLab