Ticket #185 (closed todo: done)

Opened 3 years ago

Last modified 2 years ago

Table (object) based libraries

Reported by: mridkash Owned by: mridkash
Priority: normal Milestone:
Component: uwiki Keywords:
Cc: Blocked By:
Blocking:

Description

I can see that some libs in uwiki are now table based, like git library (libgit) while others are not like libacl, libhtml etc.

I think those libs need to be object based as well.

Change History

comment:1 in reply to: ↑ description Changed 3 years ago by ct

Replying to mridkash:

I can see that some libs in uwiki are now table based, like git library (libgit) while others are not like libacl, libhtml etc.

I think those libs need to be object based as well.

the tables are old, we are in transition to libproto based OO, loaded by 'loaders' which defined the particular interfaces in question.

Example object hierarchy:

Loader = Object.clone()
Loader.load = function ...


 Action = Loader.clone()
 Action.invoke = function () { error "missing definition"}

 Scm = Loader.clone()
 Scm. ..interfaces to be defined ...
 
 Type = Loader.clone()
 Type. ..interface to be defined...

comment:2 Changed 2 years ago by mridkash

  • Status changed from new to closed
  • Resolution set to done

agreed upon using lua modules for libraries and prototype for objects

Note: See TracTickets for help on using tickets.