[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [RFC] Solid and use of namespaces
From:       Guillaume Laurent <glaurent () telegraph-road ! org>
Date:       2006-05-22 12:27:31
Message-ID: 4471AE33.1060402 () telegraph-road ! org
[Download RAW message or body]

Marcos Mayorga wrote:
> I would choose using namespaces to nest the classes.
> Clearer code, best designed, improved readability and extensibility, and
> over all, increases the level of abstraction, which is a key factor for
> OOP.
>   
Namespaces are a purely lexical feature, I fail to see how using them 
would "increase the level of abstraction".
> ie: I have nothing to do with the class PowerBattery related to 'power'
> if you choo to use power::battery, a can later do a power::solar_panel,
> and use functions insife power (like power::have_i_supply_for_one_hour())
> which abstract me on the specific power supply the instance is using.
>
>   
Seems to me you're confusing namespaces and polymorphism.

-- 
Guillaume
http://telegraph-road.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic