Hopbot log for 2009-11-18 - Helma IRC channel: #helma on irc.freenode.net

2009-11-18:

[10:01] <emilis_info> hmm
[10:01] <emilis_info> clone() does not work as expected for me...
[10:04] <emilis_info> it does not clone arrays
[10:04] <emilis_info> is this a bug?
[10:04] <emilis_info> where do I submit bugs?
[10:10] <emilis_info> hi robi42 , thanks for the link yesterday :)
[10:10] <robi42> emilis_info: np, u're welcome. :)
[10:27] <emilis_info> I submitted the bug: http://github.com/hns/helma-ng/issues#issue/28
[14:19] <emilis_info> how do I submit a patch to Helma NG?
[14:38] <triotex> hi! can i create a setter for a normal property from the type.properties?
[14:39] <emilis_info> thanks hannesw :-)
[14:55] <robi42> triotex: there's obj.__defineSetter__(sprop, fun) https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/defineSetter
[14:59] <robi42> btw, w/ ng (complying to es 5) one would use Object.defineProperty(obj, prop, desc)
[15:01] <robi42> cf. http://ejohn.org/blog/ecmascript-5-objects-and-properties/
[15:02] <triotex> but i can define a setter just for normal object properties, not for hopobject properties from the type.properties, or?
[15:03] <robi42> not sure.
[15:08] <triotex> hmmm, i tested it now three times and it's just working if you perform it on a non-hopobject-property, which you add dynamic by defining a setter and getter.
[15:14] <triotex> http://helma.pastebin.com/f35bd71c0
[15:15] <triotex> prefixing with underscore is a way to do this, but you don't have any access control on _property
[15:15] <triotex> that's hard to understand for helma newbies
[15:16] <triotex> it's more like a convention, not a good getter/setter pattern.
[15:19] <triotex> another detail: if you remove the getter and setter from the source file and you save it, helma still uses them.
[15:19] <triotex> only way to apply this code change is to restart helma.
[15:20] <triotex> is this a bug or a wontfix?
[15:56] <triotex> my fault - wontfix. if you change the prototype, all existing objects will not get these changes.
[18:57] <botic> is it a good idea to create foreign key contraints and define "on delete cascade" together with helma?
[18:59] <botic> our db-guy did that for every fk-column and i don't want to change everything in the db in three weeks :-)

 

 

In the channel now:

Logs by date: