OCaml Forge

Detail: [#831] Uniform interface even if no implementation

Feature Requests: Browse | Download .csv | Monitor

[#831] Uniform interface even if no implementation

Date:
2010-12-16 11:12
Priority:
3
State:
Open
Submitted by:
Sylvain Le Gall (gildor-admin)
Assigned to:
Sylvain Le Gall (gildor-admin)
Component:
General
Operating System:
All
Summary:
Uniform interface even if no implementation

Detailed description
There should be a default "dumb" interface that allow to define s_, ns_, f_ et al. It should be linked to nothing and implements default behavior.

The point is to avoid writing stubs in every project and to limit the dependencies to only gettext (no C stubs, no Camomile, just ocaml-gettext). It would be more simple than the conditional compilation with IFDEF HAS_GETTEXT ....

E.g.
let f_ e =
e^^""

let fn_ f1 f2 n =
f1^^""

let s_ s =
s

let sn_ s p n =
if n = 1 then
s
else
p

let ns_ s =
s

Followup

No Followups Have Been Posted

Attached Files:

Changes:

Field Old Value Date By
assigned_tonone2010-12-16 11:12gildor-admin
Operating SystemNone2010-12-16 11:12gildor-admin
ComponentNone2010-12-16 11:12gildor-admin