GNU bug report logs - #21934
24.5; find-tag: reading TAGS file incorrectly

Previous Next

Package: emacs;

Reported by: Andreas Matthias <andreas.matthias <at> gmail.com>

Date: Mon, 16 Nov 2015 19:48:01 UTC

Severity: normal

Found in version 24.5

Done: Andreas Matthias <andreas.matthias <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #47 received at 21934 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Matthias <andreas.matthias <at> gmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 21934 <at> debbugs.gnu.org
Subject: Re: bug#21934: 24.5; find-tag: reading TAGS file incorrectly
Date: Sun, 22 Nov 2015 15:08:07 +0100
Dmitry Gutov wrote:

> That is, of course, if "." always goes after the name of the class/module/etc
> that "getPos" is defined in, and it can't follow a variable name. I'm not
> familiar with Lua's syntax.

In the example given Rectangle is a data structure called table and a
table is an associative array. In Lua you can put variables and
functions into a table. So Rectangle.getPos() is the function getPos()
of table Rectangle. Though Lua does not know the concept of classes, it
is easy to model object-oriented behavior by means of tables.

In addition to the dot-operator there's also a colon-operator in Lua which
acts like the dot-operator but hides the self/this parameter of OOP.




This bug report was last modified 9 years and 176 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.