Modula in Version 3.8
Modula in Version 3.8
I heard, that in the next version a modula is included by the char %. I think, that this would be not the best char, because this is already used for dual-digits (%1010110).
Ok, the code should be always one possible of interpretation, but i think, that beginners could be confused. Also jaPBe will be confused...
GPI
Ok, the code should be always one possible of interpretation, but i think, that beginners could be confused. Also jaPBe will be confused...
GPI
-
freedimension
- Enthusiast

- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
Sorry for that, but the % char ist the perfect char for it.
That's because it's the standard char for Modulo in every other language that supports the modulo operator I know of.
Taking another char would confuse everybody with a little more programming knowledge and wouldn't help the beginners a lot too because they learn the wrong char and as soon as they try out another language they have to adopt to the %
That's because it's the standard char for Modulo in every other language that supports the modulo operator I know of.
Taking another char would confuse everybody with a little more programming knowledge and wouldn't help the beginners a lot too because they learn the wrong char and as soon as they try out another language they have to adopt to the %
> 'Mod', like in Blitz, would be cool too
In PB, all math and binary operators are represented by a single character.
Logical operators are represented as a word.
So it doesn't make sense to name it 'Mod' as it is no logical operator.
Saying it will confuse beginners is not the best excuse for being too lazy
for changing jaPEe
Timo
In PB, all math and binary operators are represented by a single character.
Logical operators are represented as a word.
So it doesn't make sense to name it 'Mod' as it is no logical operator.
Saying it will confuse beginners is not the best excuse for being too lazy
for changing jaPEe
Timo
quidquid Latine dictum sit altum videtur
I also know other languages (for example Omikron basic) and there are also *+/- but also MOD for modulo.freak wrote:> 'Mod', like in Blitz, would be cool too
In PB, all math and binary operators are represented by a single character.
Logical operators are represented as a word.
Two complete diffrent things.Saying it will confuse beginners is not the best excuse for being too lazy
for changing jaPEe![]()
Ok,it is not so easy to find out, what % then means (for jaPBe), because he has not a good "line check", because it is doesn't needed for now.
Also it is easier to read a source, when % don't have two meanings.
Of course, it is stupid to use a other char, but double meaning of % isn't a good idea. It is like the Constant is not Constant thing...
-
freedimension
- Enthusiast

- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
GPI: What is exactly the problem with JaPBe ? The introduction of this operand shouldn't break any code as the binary numbers will be still correctly interpreted:
As FreeDimension said, the pointer thing is the same (a = a* *b)
Code: Select all
a = 10 + %10101 ; Still working properly
a = 10 % %11 ; Works ok too.
Just wondering.. what if we omit the spaces?!?
say if we did something like this: a = 10%10 ?
-Lars
say if we did something like this: a = 10%10 ?
-Lars
AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
Yes, i know it, but for japbe, %10 is here a binary. That is the big diffrent to *name and mul. I don't think, that somehing like *adr2= 2**Adr1 is ever written, because it makes no thense.freak wrote:a = 10%10
Is interpreted as 10 mod 10, because if the % would mean binary here,
then there would be another operator missing between 10 and %10.
Timo
A=b%%10 looks little bit stupid.
also japbe looks word for word and all chars are seperators.



