PicoMite 6.00.02 prospectus


Author Message
bfwolf
Senior Member

Joined: 03/01/2025
Location: Germany
Posts: 258
Posted: 04:57pm 15 Jan 2025      

  twofingers said  
  matherp said  I've also played with this - does it make sense?
Note that BYVAL is effectively a unary operator ...

Do we need that? Isn’t that identical to
a%=7
Print double((a%))
Print a%
Print double(a%)
Print a%

Function double(i%)
 i%=i%*2
 double=i%
End Function



Yes! But using an unary operater like "ByVal" would be more expressive!

  matherp said  
  Quote  Is there a particular difficulty in adding adding it to the SUB prototype like VB


Yes!!!!!!!


Maybe you should consider in advance whether using it as a "unary operator" when calling a sub/function could prevent a future use of "ByVal" in a sub/function prototype declaration?

If that were the case, perhaps use a different name for the "unary operator"? E.g. "AsVal"?

bfwolf