Re: [arch-general] [PATCH 08/48] Slightly simplify hook-running infrastructure.

2010-06-30 Thread Victor Lowther
On Thu, 2010-07-01 at 00:00 +0200, Thomas Bächler wrote: > Am 30.06.2010 23:47, schrieb Victor Lowther: > > Go ahead and declare add_hook and run_hook as readonly functions > > to prevent hooks from overwriting them. Too bad bash does not have > > lexically scoped variables -- if it does, we could

Re: [arch-general] [PATCH 08/48] Slightly simplify hook-running infrastructure.

2010-06-30 Thread Thomas Bächler
Am 30.06.2010 23:47, schrieb Victor Lowther: > Go ahead and declare add_hook and run_hook as readonly functions > to prevent hooks from overwriting them. Too bad bash does not have > lexically scoped variables -- if it does, we could do the same with > the hook_funcs associative array. Lots of hu

[arch-general] [PATCH 08/48] Slightly simplify hook-running infrastructure.

2010-06-30 Thread Victor Lowther
Go ahead and declare add_hook and run_hook as readonly functions to prevent hooks from overwriting them. Too bad bash does not have lexically scoped variables -- if it does, we could do the same with the hook_funcs associative array. --- functions | 49 ++