Page 1 of 1

sub module

Posted: Thu May 27, 2021 5:25 am
by microdevweb
That will very great if we can create a module into an another module

Re: sub module

Posted: Fri May 28, 2021 12:49 pm
by Saki
This is very true +1

Re: sub module

Posted: Fri May 28, 2021 1:08 pm
by StarBootics
-1 I disagree with that. What we really need is Namespace/EndNamespace and in that Namespace you can add as many modules as you want.

I could look like that :

Code: Select all

Namespace Maths

  DeclareModule Vector2
    ...
  EndDeclareModule
  
  Module Vector2
    ...
  EndModule
  
  DeclareModule Vector3
     ...
  EndDeclareModule
  
  Module Vector3
     ...
  EndModule
  
EndNamespace
And to access it in the code later on :

Code: Select all

Maths::Vector2::SomeProcedure()
Best regards
StarBootics