const support

Harri Porten porten at kde.org
Thu Jun 16 22:35:38 CEST 2005


Hi!

I already told Maciej on #khtml that I had implemented support for the
non-standard "const" keyword some time ago. At first I simply made it a
synonym to "var" to avoid syntax errors. Later I added a real
implementation that makes the variable read-only.

To keep the necessary changes minimal I had introduced a global flag. As
expected that caused a bug reported last week. Fixed now.

 http://websvn.kde.org/trunk/kdelibs/kjs/keywords.table?rev=290511&view=rev
 http://websvn.kde.org/trunk/kdelibs/kjs/nodes.cpp?rev=297361&view=rev
 http://websvn.kde.org/trunk/KDE/kdelibs/kjs/nodes.cpp?rev=426263&view=rev

The diffs should be extractable with "svn diff". If necessary, I can
provide the patches. If you change anything while merging these changes
please send us the patches so that we can sync the implementation.

Harri.



More information about the Khtml-devel mailing list