Re: namespace

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi, Karl. You wrote:

>I think you have a point. A global constant should be both
>global and constant! I have modified Bliss to enforce this, but
>to allow duplicate definitions (many files can do 'global FALSE = 0').

Duplicate definitions are not terribly clean, but since they are also completely
harmless I can live with them ;).

>Bliss now allows classes to have constants as members which
>opens up some maybe useful namespacing techniques.
>
> class Windows_constants
>     constant
>     BN_KILLFOCUS = 7,
>     BN_CLICKED = 0
>     -- You could probably think of a few more!
>  end class
<snip>

Interesting. But I hasten to add I have never been a fan of OO techniques as
such; in my opinion they are the principal cause of the enormous software bloat
of the last decade. I suppose it's one of those ideas that were just too much
ahead of their time: only quite recently computers acquired sufficient memories,
storage capacities and the processing power to deal, adequately, with attendant
requirements.

Personally, I believe the whole namespace mess can be neatly avoided using some
sort of a modular scheme with a very simple interface.

I am also sorry I cannot comment on your baby, since I have not studied Bliss in
any detail. Perhaps just one, very superficial impression - I hope you will not
be too offended: it seems to be a bit of an eclectic mixture; perhaps you are
trying to please too many people with too many pet ideas...

And talking about Eu hacks, I am really looking forward to Matt Lewis' effort.
He promises better error handling/reporting and a 'variable_id' sort of a thing,
a very old couple on my wish list.

jiri

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu