6 Sep 23:12
Re: Proposal for Include files/headers
Slawomir Lisznianski <slisznianski <at> c2-lang.org>
2004-09-06 21:12:56 GMT
2004-09-06 21:12:56 GMT
Slawomir Lisznianski wrote:
> For clarity, I would recommend that types like Integer, Float and Matrix
> above be in separate files. The rotate function would then be:
>
> namespace Math
> {
> namespace Algorithm
> {
> Math.Matrix rotate( Math.Matrix mat, Math.Float deg );
>
> // other common algorithms here...
> }
> }
>
Actually, since Algorithm, Matrix and Float share common parent
namespace, it would be even simpler than my example:
namespace Math
{
namespace Algorithm
{
Matrix rotate( Matrix mat, Float deg );
// other common algorithms here...
}
}
Now, let's assume that the user decided to add a type within an inner
(Continue reading)
RSS Feed