Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduction of New Predefined Dash "–" Variable #1003

Merged
merged 1 commit into from
Mar 7, 2020
Merged

Conversation

rdbyk
Copy link
Owner

@rdbyk rdbyk commented Mar 7, 2020

may serve different purposes

  1. Shorthand for void()
--> –
 –  = 

    Undefined

--> void()
 ans  =

    Undefined
  1. Ignore Output Arguments
--> [a,b]=frexp(7.93)
 a  = 

   0.99125
 b  = 

   3.

--> clear a b

--> [–,b]=frexp(7.93)
 b  = 

   3.

--> a

Undefined variable: 'a'.

--> clear b

--> [a,–]=frexp(7.93)
 a  = 

   0.99125

--> b

Undefined variable: 'b'.

Remarks:

  • Assignations to the protected variable are silently ignored
  • The special features (cf. above) may be disabled using unprotect('–')
  • corresponds to Unicode U+2013 aka UTF8 e28093
  • Pressing AltGr+- under Ubuntu produces the character

@rdbyk rdbyk merged commit d6369c7 into master Mar 7, 2020
@rdbyk rdbyk deleted the predef_dash_var branch March 7, 2020 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant