Am Freitag, 13. Oktober 2006 17:22 schrieben Sie:

> function mydict.len() dict
>     let var_in_func = 2
>     let s:script_var_in_func = 2
>    return len(self.data)
> endfunction

This syntax is only suitable for what is called an Meta-Class or a 
Singelton-Pattern. It is not suitable for real OO programming. See:

http://en.wikibooks.org/wiki/Learning_the_vi_editor/Vim#Object_orientated_programming

As you can see the creation of a true class is a lot more complex and - more 
importantly - difficult to parse for ctags - at least when more then one 
class is defined inside a script file. Mind you Ada suffers a similar problem 
as Ada too allows for more then one class to be defined inside on package.

Martin
-- 
Martin Krischik
mailto://[EMAIL PROTECTED]

Attachment: pgpnvgrZs4Uk3.pgp
Description: PGP signature

Reply via email to