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 h

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 re

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. C is spelled out, and by definition XOR returns parity. On the other hand, the junctive ^ (one()) is exactly one. > > 3)

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 cal

Re: Funky «vector» operator

2004-03-19 Thread Larry Wall
On Fri, Mar 19, 2004 at 08:58:52PM +0100, Karl Brodowsky wrote: : Btw. since it is favored that the default encoding for perl6 : source code will be utf-8, it is not enough that you type something : that displays as « or ». Your editor has to support utf-8 or : you need to have conversion tools to

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 b

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 someon

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 AS

Re: Funky «vector» operator

2004-03-19 Thread Gregor N. Purdy
Oh, and the 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 > > < < to get « > > > to get » > > after doing > > :set digraph > > (list of available digra

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
For me, (vim 6.2), that is < < to get « > > 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 < < t

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 unl

Re: Funky «vector» operator

2004-03-19 Thread Matthew Walton
Angel Faus wrote: Most people know about this sequence because the ~ character is a common one in URLs, so the situation is not as bad as i may look. Neverthless, I definetly hope that a future FAQ of perl6 has a big section labeled How do I Write These Funky Chars in My OS. That sounds like a g

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 you

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 lit

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 course,