Everything related to the code /
Tout ce qui touche au code
-
milipili
- Posts: 545
- Joined: Thu Nov 02, 2006 8:52 am
- Location: Paris (France)
-
Contact:
Post
by milipili » Mon Jun 30, 2008 11:34 am
Hi !
Does someone have a better name for the namespace TA3D::Paths ?
At the begining it was only for paths. but now this namespace provides fonctions to handle both files and paths.
Damien Gerard
Ta3d & Yuni Developer
-
zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
-
Contact:
Post
by zuzuf » Mon Jun 30, 2008 1:15 pm
Then let's split it in TA3D::Paths and TA3D::Files ?
=>;-D Penguin Powered
-
milipili
- Posts: 545
- Joined: Thu Nov 02, 2006 8:52 am
- Location: Paris (France)
-
Contact:
Post
by milipili » Mon Jun 30, 2008 1:49 pm
I don't think the namespace is really big enough for that but it is another solution. Which one do you prefer ?
Damien Gerard
Ta3d & Yuni Developer
-
milipili
- Posts: 545
- Joined: Thu Nov 02, 2006 8:52 am
- Location: Paris (France)
-
Contact:
Post
by milipili » Mon Jun 30, 2008 1:50 pm
Where will we put ::Exists() in this case ? This method works for both files and folders
Damien Gerard
Ta3d & Yuni Developer
-
zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
-
Contact:
Post
by zuzuf » Mon Jun 30, 2008 2:14 pm
maybe using a sub namespace : TA3D::Paths::Files ? and keeping Exists() in TA3D::Paths. I think Exists() should be kept with Paths because a path can be seen as the way to a node in the file system (either file or directory).
=>;-D Penguin Powered
-
milipili
- Posts: 545
- Joined: Thu Nov 02, 2006 8:52 am
- Location: Paris (France)
-
Contact:
Post
by milipili » Mon Jun 30, 2008 3:42 pm
Fine for me
Damien Gerard
Ta3d & Yuni Developer
Who is online
Users browsing this forum: No registered users and 31 guests