Page 2 of 2
Re: Why not '\' instead of '::' for modules?
Posted: Mon Jul 15, 2013 8:38 pm
by skywalk
I like having my cake AND eating it

Re: Why not '\' instead of '::' for modules?
Posted: Mon Jul 15, 2013 9:25 pm
by aonyn
Hi All,
I would not be opposed to '\', but I do like '::' for modules.
It is clear at a glance that I am looking at a module call and not a structure.
Also, to me it makes sense to use '::', as it reminds me of a namespace, which is somewhat how I see a module.
All that said, thank you for not using '_'.
I often use '_' in my naming, so for me, '_' would become an issue of breaking old habits.
Thanks again Fred and team for modules, I have been reorganizing my current project into modules, and so far I am very pleased with the implementation.
Regards,
David
Re: Why not '\' instead of '::' for modules?
Posted: Tue Jul 16, 2013 9:01 am
by dobro
we could have used Alt+0135 ---->
‡
(ALT key presses on
and the number 0135 )
it's more of a button press, but the caracter is alone and recognizable
I do not have the latest version of PureBasic
but I fear that "::" asks me problems with my Personal Editor (EPB)
because I use ':' to identify the lines separator ....
like:
Re: Why not '\' instead of '::' for modules?
Posted: Tue Jul 16, 2013 7:03 pm
by BorisTheOld
Some people are unhappy with the '\', some are unhappy with '::', and some are unhappy with '_'
I suggest we use the 'happy face', which should make everyone happy!!
For example:
ModuleName

ProcedureName
Re: Why not '\' instead of '::' for modules?
Posted: Tue Jul 16, 2013 10:38 pm
by fsw
Lets go for it
Next all users with a german styled keyboard will come and request the use of umlauts...
ä ö ü
But please before we do that let's go with the copyright sign:
©
Re: Why not '\' instead of '::' for modules?
Posted: Wed Jul 17, 2013 12:32 am
by Olliv
Justin wrote:
Is EndUsing really necessary?
No. You can replace it with N™ ("nick the module" ).

Re: Why not '\' instead of '::' for modules?
Posted: Wed Jul 17, 2013 8:21 am
by User_Russian
request the use of umlauts... ä ö ü
or
ё,
й,
ъ,
ж.

Re: Why not '\' instead of '::' for modules?
Posted: Wed Jul 17, 2013 12:34 pm
by Justin
No. You can replace it with N™ ("nick the module" ).
i meant to use at the top of the file:
Code: Select all
using modA
using modB
using modAlias = modC
and the compiler disables it at the end of the file so no endusing is necessary.
Re: Why not '\' instead of '::' for modules?
Posted: Wed Jul 17, 2013 12:38 pm
by Shield
The problem is, that C# is truly file-based whereas PureBasic
treats the source code as one huge file, so an end directive is required.
C# for example doesn't even allow source code to be included into a file.
Re: Why not '\' instead of '::' for modules?
Posted: Sat Jul 20, 2013 6:09 pm
by Michael Vogel
Justin wrote:And how about 'Using' instead of 'UseModule'? Like in C#, and make it valid only in the current file?
It's EndUsing really necessary?
Hm,
Structure / EndStructure
With / EndWith
If / EndIf
Procedure / EndProcedure
UseModule /
EndUsing?
If UseModule (or however it will be called) needs and end-command, shouldn't it be named the same way other PB commands have been designed?
PS: don't forget to update the IDE (indentation, goto matching keyword etc.)
Re: Why not '\' instead of '::' for modules?
Posted: Sat Jul 20, 2013 6:13 pm
by Fred
It's not 'EndUseModule' because it's not like If/EndIf and such, you don't have to pair it (you won't use UnuseModule that often).