Funky «vector» operator

2004-03-19 Thread Andy Wardley
I'm so happy! I just found out, totally by accident, that I can type the « and » characters by pressing AltGr + Z and AltGr + X, respectively. Apologies if this is common knowledge, but it was news to me, and I thought I'd share this little Perl6 of wisdom. Your mileage may vary, of

Re: Funky «vector» operator

2004-03-19 Thread Angel Faus
Viernes 19 Marzo 2004 13:08, Andy Wardley wrote: I'm so happy! I just found out, totally by accident, that I can type the « and » characters by pressing AltGr + Z and AltGr + X, respectively. Apologies if this is common knowledge, but it was news to me, and I thought I'd share this little

Re: Funky «vector» operator

2004-03-19 Thread Rafael Garcia-Suarez
Andy Wardley wrote in perl.perl6.language : I'm so happy! I just found out, totally by accident, that I can type the « and » characters by pressing AltGr + Z and AltGr + X, respectively. Of course this information is almost completely unusable without knowing your OS, your locale, and your

Re: Funky «vector» operator

2004-03-19 Thread Robin Berjon
Matthew Walton wrote: For the record, on Mac OS X it's Option-\ for « and Option-Shift-\ for » (where Option-Shift-\ may also be seen as as Option-Shift-|). It is entirely possible that this is different on a normal Apple keyboard as opposed to the one in my Powerbook, but that strikes me as

Re: Funky «vector» operator

2004-03-19 Thread Gregor N. Purdy
For me, (vim 6.2), that is bs to get « bs to get » after doing :set digraph (list of available digraphs can be seen by :digraph) But, I find the above a bit unnerving because I've deleted the character, and then if I type a certain character next I haven't. Vim also allows

Re: Funky «vector» operator

2004-03-19 Thread Matthew Walton
Robin Berjon wrote: Specifying the OS is not enough, you need at least the keyboard layout. It would be impossible to have shortcuts involving | or \ on a French keyboard since they are respectively Alt-Shift-L and Alt-Shift-: OS X / iBook / fr-fr « Alt-è » Alt-Shit-è Good point. I tend to

Re: Funky «vector» operator

2004-03-19 Thread Gregor N. Purdy
Oh, and the ctrl-k form doesn't require you to do the :set digraph thing. Its always available. Regards, -- Gregor On Fri, 2004-03-19 at 06:16, Gregor N. Purdy wrote: For me, (vim 6.2), that is bs to get « bs to get » after doing :set digraph (list of available digraphs

Re: Funky «vector» operator

2004-03-19 Thread Larry Wall
Another approach would be to write a little fixup script that turns the ASCII variants into the non-ASCII variants, and then you could bind it to a function key to translate the current line. That has the advantage that you could use it on a script someone else sends you as well if you find the

Re: Funky «vector» operator

2004-03-19 Thread Adrian Howard
On 19 Mar 2004, at 16:16, Larry Wall wrote Another approach would be to write a little fixup script that turns the ASCII variants into the non-ASCII variants, and then you could bind it to a function key to translate the current line. That has the advantage that you could use it on a script

Re: Funky «vector» operator

2004-03-19 Thread Karl Brodowsky
Dear All, just for the Emacs-users among you: C-x 8 yields « and C-x 8 yields ». For the Unix/Linux users it is possible to setup or modify the keyboard layout using xmodmap. Actually there are so many combinations of OS, keyboard layouts, tools, editors and unicode encodings that this could

Some questions about operators.

2004-03-19 Thread Joe Gottman
I just read Synopsis 3, and I have several questions. 1) Synopsis 3 says that the difference between $x ?| $y and $x || $y is that the later always returns a Boolean. Does this mean that $x ?| $y short-circuits? 2) Do all of the xor variants have the property that chained

Re: Some questions about operators.

2004-03-19 Thread Luke Palmer
Joe Gottman writes: 2) Do all of the xor variants have the property that chained calls return true if exactly one input parameter is true? I would imagine not. Cxor is spelled out, and by definition XOR returns parity. On the other hand, the junctive ^ (one()) is exactly one. 3)

RE: Some questions about operators.

2004-03-19 Thread Austin Hastings
-Original Message- From: Luke Palmer [mailto:[EMAIL PROTECTED] Sent: Friday, 19 March, 2004 10:06 PM To: Joe Gottman Cc: Perl6 Subject: Re: Some questions about operators. Joe Gottman writes: 2) Do all of the xor variants have the property that chained calls return true if

Re: Some questions about operators.

2004-03-19 Thread Luke Palmer
Austin Hastings writes: -Original Message- From: Luke Palmer [mailto:[EMAIL PROTECTED] Sent: Friday, 19 March, 2004 10:06 PM To: Joe Gottman Cc: Perl6 Subject: Re: Some questions about operators. Joe Gottman writes: 2) Do all of the xor variants have the property