From 959b95ccc98f654193b6ffa2e856c55b82028f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Tue, 6 Feb 2001 22:36:14 +0100 Subject: [PATCH] Added some AutoDoc mk II markup. Rev: src/object.c:1.162 --- src/object.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/object.c b/src/object.c index b41dd6a784..115d44c496 100644 --- a/src/object.c +++ b/src/object.c @@ -5,7 +5,7 @@ \*/ /**/ #include "global.h" -RCSID("$Id: object.c,v 1.161 2001/02/03 01:24:38 mast Exp $"); +RCSID("$Id: object.c,v 1.162 2001/02/06 21:36:14 grubba Exp $"); #include "object.h" #include "dynamic_buffer.h" #include "interpret.h" @@ -1552,6 +1552,16 @@ void push_magic_index(struct program *type, int inherit_no, int parent_level) push_object(magic); } +/*! @decl mixed ::`->(string index) + *! + *! Builtin arrow operator. + *! + *! This function indexes the current object with the string @[index]. + *! This is useful when the arrow operator has been overloaded. + *! + *! @seealso + *! @[::`->=()] + */ static void f_magic_index(INT32 args) { struct inherit *inherit; @@ -1586,6 +1596,17 @@ static void f_magic_index(INT32 args) } } +/*! @decl void ::`->=(string index, mixed value) + *! + *! Builtin arrow set operator. + *! + *! This function indexes the current object with the string @[index], + *! and sets it to @[value]. + *! This is useful when the arrow set operator has been overloaded. + *! + *! @seealso + *! @[::`->()] + */ static void f_magic_set_index(INT32 args) { int f; -- GitLab