On Mar 27, 2009, at 8:12 AM, Pedro Vale de Gato wrote:
> I'm preparing to commit my MDILayoutPanel patch
> (http://trac.dabodev.com/ticket/1137)
> Paul suggested to place it in dabo.lib
>
> As this is windows only, wouldn't it be better to use for example
> dabo.lib.win ou even dabo.platform.win?
>
> I think sooner or later we're gonna need this platform specific
> seccion's in dado... what's your opinion?
The general philosophy for handling things that cannot be run on all
platforms is that if a dev attempts to run it on a non-supported
platform, it won't crash their system; instead, it should gracefully
handle the problem and provide some appropriate notice to the
developer. The docs should also clearly define this as platform-
specific behavior.
If it is possible to provide similar behavior with a different
implementation on other platforms, then there should be an if
structure bracketing the platform-specific chunks of code.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]