RE: Apoc4: Parentheses

2002-01-20 Thread Sterin, Ilya
[EMAIL PROTECTED] writes: : QUOTE : Interestingly, this one tweak to the whitespace rule also means that we'll : be able to simplify the parentheses out of other similar built-in constructs: : : if $foo { ... } : elsif $bar { ... } : else { ... } : : while

RE: catching warnings

2002-01-08 Thread Sterin, Ilya
Or possibly a universal catch, with the $@.warning and $@.die or something, so that you can check it. Ilya -Original Message- From: David Whipp [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 7:25 PM To: Perl6-Language (E-mail) Subject: catching warnings Perl6 is

RE: ! and !

2001-09-02 Thread Sterin, Ilya
-Original Message- From: Russ Allbery [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 02, 2001 8:42 AM To: [EMAIL PROTECTED] Subject: Re: ! and ! Bart Lateur [EMAIL PROTECTED] writes: Why is it = and not =? Because in English, it's less than or equal to not equal to or

RE: LangSpec: Statements and Blocks [first,last]

2001-09-02 Thread Sterin, Ilya
-Original Message- From: raptor [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 02, 2001 1:47 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: LangSpec: Statements and Blocks [first,last] hi, As we read in Damian Conway- Perl6-notes, there will by a

RE: ! and !

2001-09-01 Thread Sterin, Ilya
-Original Message- From: Russ Allbery [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 01, 2001 4:03 PM To: [EMAIL PROTECTED] Subject: Re: ! and ! raptor [EMAIL PROTECTED] writes: I was looking at Interbase SELECT syntax and saw these two handy shortcuts :

RE: ! and !

2001-09-01 Thread Sterin, Ilya
-Original Message- From: Andrew Wilson [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 01, 2001 6:06 PM To: Russ Allbery Cc: [EMAIL PROTECTED] Subject: Re: ! and ! On Sat, Sep 01, 2001 at 02:40:40PM -0700, Russ Allbery wrote: How is ! different from =? It's just

RE: ! and !

2001-09-01 Thread Sterin, Ilya
-Original Message- From: Bryan C. Warnock [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 01, 2001 5:59 PM To: Russ Allbery; [EMAIL PROTECTED] Subject: Re: ! and ! On Saturday 01 September 2001 05:40 pm, Russ Allbery wrote: Sterin, Ilya [EMAIL PROTECTED] writes: From

RE: HOw to Unsub

2001-08-21 Thread Sterin, Ilya
Usually the generic way is to send email to [EMAIL PROTECTED], so in your case try [EMAIL PROTECTED] Ilya -Original Message- From: Patel, Sharad To: Eric Roode; [EMAIL PROTECTED] Sent: 08/21/2001 7:22 AM Subject: HOw to Unsub HI Guys Sorry for this but I need to know how to

Circular references

2001-08-01 Thread Sterin, Ilya
I was just wondering if there will be any solution for the circular refernece memory leak (I guess you can call it a problem). Can't we keep information on the number of circular references in the SV structure and then decrement the references count by one + the circular reference count at the

RE: Circular references

2001-08-01 Thread Sterin, Ilya
, Ilya; '[EMAIL PROTECTED]' Sent: 08/01/2001 1:18 PM Subject: Re: Circular references At 01:01 PM 08-01-2001 -0600, Sterin, Ilya wrote: I was just wondering if there will be any solution for the circular refernece memory leak (I guess you can call it a problem). Can't we keep information on the number

RE: Circular references

2001-08-01 Thread Sterin, Ilya
-Original Message- From: David L. Nicol To: Buddha Buck Cc: Sterin, Ilya; '[EMAIL PROTECTED]' Sent: 08/01/2001 1:12 PM Subject: Re: Circular references Buddha Buck wrote: At 01:01 PM 08-01-2001 -0600, Sterin, Ilya wrote: Can't we keep information on the number of circular

RE: Circular references

2001-08-01 Thread Sterin, Ilya
Well guess not, since something like this... { my ($a, $b, $c); $a = \$b; $b = \$c; $c = \$a; } would definitelly be hard, resource consuming to implement a circular reference count. Ilya -Original Message- From: Sterin, Ilya [mailto:[EMAIL PROTECTED]] Sent: Wednesday

RE: if then else otherwise ...

2001-07-29 Thread Sterin, Ilya
in ?:: or any other condition checking block, 0 is true, everything else is false. I am yet to see why otherwise or any third condition is needed. If that's then we can have 4 conditions 1,0,-1,undef, and we can keep going. That is why there are conditions, if you want to check for -1 you must

RE: if then else otherwise ...

2001-07-28 Thread Sterin, Ilya
What's the point, you can accomplish the same with if/elsif/else. Maybe I'm not understanding this correctly, but if (cond) {} elsif (cond) {} else {} Ilya -Original Message- From: raptor [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 28, 2001 9:35 AM To: [EMAIL PROTECTED]

RE: if then else otherwise ...

2001-07-28 Thread Sterin, Ilya
-Original Message- From: raptor [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 28, 2001 12:32 PM To: Sterin, Ilya; [EMAIL PROTECTED] Subject: Re: if then else otherwise ... I've/m never used/ing elseif ( i hate it :) from the time I have to edit a perl script of other person

RE: aliasing a value [...]

2001-07-25 Thread Sterin, Ilya
\%foo = \%bar is fine with me, it's the is alias I was a little worried about. Ilya -Original Message- From: David L. Nicol To: Sterin, Ilya Cc: 'Davíð Helgason '; '[EMAIL PROTECTED] '; 'John Porter ' Sent: 07/24/2001 5:45 PM Subject: Re: aliasing a value [...] Sterin, Ilya wrote

RE: array/hash manipulation [was :what's with 'with'?]

2001-07-25 Thread Sterin, Ilya
..., just by incrementing a counter, while comparing to the shortes array, but I'm wondering if a control variable would yield other benefits and if nothing else decrease the amount of written code. Ilya -Original Message- From: David L. Nicol To: Sterin, Ilya Cc: Perl 6 Language Sent: 07

RE: aliasing a value in a while each loop

2001-07-23 Thread Sterin, Ilya
alias(%foo, %bar) is better IMO since it conforms to other functions in perl. my %foo is alias = %bar; #seems a little out of scope of the language, unless more functionality is implemented in that way. Ilya -Original Message- From: Davíð Helgason To: [EMAIL PROTECTED]; John Porter

RE: array/hash manipulation [was :what's with 'with'?]

2001-07-21 Thread Sterin, Ilya
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 21, 2001 5:50 AM To: Sterin, Ilya; 'raptor '; Perl 6 Language Subject: RE: array/hash manipulation [was :what's with 'with'?] Sterin, Ilya [EMAIL PROTECTED] wrote: Just one question, how

RE: array/hash manipulation [was :what's with 'with'?]

2001-07-21 Thread Sterin, Ilya
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 21, 2001 5:50 AM To: Sterin, Ilya; 'raptor '; Perl 6 Language Subject: RE: array/hash manipulation [was :what's with 'with'?] Sterin, Ilya [EMAIL PROTECTED] wrote: Just one question, how

RE: array/hash manipulation [was :what's with 'with'?]

2001-07-20 Thread Sterin, Ilya
Hmmm. Didn't think about that. That would be a nice way, that way you can manipulate it's behaviour depending with how many aliases you provide. for my $el1, $el2 ( (@foo, @bar) ) { print $el\n } $el1 and $el2 would of course be aliases, right? But one though might be, what happens if

RE: array/hash manipulation [was :what's with 'with'?]

2001-07-20 Thread Sterin, Ilya
To: '[EMAIL PROTECTED] ' Sent: 07/20/2001 11:21 AM Subject: Re: array/hash manipulation [was :what's with 'with'?] On Fri, Jul 20, 2001 at 11:17:13AM -0600, Sterin, Ilya wrote: But this will be flattened, so I would think for my($key, $val)(%my_hash) { ... } Would be a great convenience. $key

RE: array/hash manipulation [was :what's with 'with'?]

2001-07-20 Thread Sterin, Ilya
No, I don't think you are understanding it correctly. It's not about looping sequentially, but rather simultaneouly, for comparison purposes. @foo = (1,2,3); @bar = (1,2,3); for my ($foo, $bar) (@foo, @bar) #As the index for @foo increases, so #does @bar

RE: aliasing a value in a while each loop

2001-07-20 Thread Sterin, Ilya
at 11:17:13AM -0600, Sterin, Ilya wrote: But this will be flattened, so I would think for my($key, $val)(%my_hash) { ... } Would be a great convenience. $key and $val being aliased accordingly. I'm sorry, but I fail to see how this is a big improvement over the current version

RE: array/hash manipulation [was :what's with 'with'?]

2001-07-20 Thread Sterin, Ilya
. Do I still need the values of the longer list, for one reason or another, or do I want the loop aborted? Ilya -Original Message- From: David L. Nicol To: Sterin, Ilya Cc: 'raptor '; '[EMAIL PROTECTED] ' Sent: 07/20/2001 1:44 PM Subject: Re: array/hash manipulation [was :what's

RE: array/hash manipulation [was :what's with 'with'?]

2001-07-20 Thread Sterin, Ilya
-Original Message- From: Jeremy Howard [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 8:40 PM To: Sterin, Ilya; 'raptor '; [EMAIL PROTECTED] Subject: Re: array/hash manipulation [was :what's with 'with'?] Sterin, Ilya [EMAIL PROTECTED] wrote: Hmmm. Didn't think about

RE: aliasing - was:[nice2haveit]

2001-07-19 Thread Sterin, Ilya
Stuart Rocks wrote: CWith would also make the [variable, alias, whatever] default, but not replace the $_: $_ = monkey ; $foo = coward; with ($foo){ print; print $_; } would output monkey coward. okay, coward is default but $_ has not been replaced, so would not the

RE: aliasing - was:[nice2haveit]

2001-07-19 Thread Sterin, Ilya
But I thought this was related to more than just with(), so if we have foreach (1..10) { print; ### But if you are trying to use it in a string print This is number $_ of 10\n; ### Would now have to be printed as print This is number ; print; print of 10\n; ### Which is three extra

RE: what's with 'with'? (was: [aliasing - was:[nice2haveit]])

2001-07-19 Thread Sterin, Ilya
Well if you look at the proposed... $_ = monkey ; $foo = coward; with ($foo){ print; print $_; } Would print coward monkey, which will give you unexpected results if you are used to having the same output for both, coward coward. But I guess the above would not replace $_ which

RE: what's with 'with'? (was: [aliasing - was:[nice2haveit]])

2001-07-19 Thread Sterin, Ilya
I question this too, since as you mentioned with, in my experience works nicely to reference and object like with(object) { .foo(); .bar(); } Ilya -Original Message- From: Mark Koopman To: [EMAIL PROTECTED] Sent: 07/19/2001 12:42 PM Subject: Re: what's with 'with'? (was: [aliasing

RE: what's with 'with'? (was: [aliasing - was:[nice2haveit]])

2001-07-19 Thread Sterin, Ilya
Well then maybe $_ can be a reference to a multidimensional array or hash, and temp vars can be access like this. for ( @foo, @bar ) { print $_-[0] : $_-[1]\n; } As for hashes it might hold the key, also in an multidimensional array. Ilya -Original Message- From: John Porter To:

RE: aliasing - was:[nice2haveit]

2001-07-19 Thread Sterin, Ilya
Agree. I think that with() should only be used with object references only, and $_ should be set accordingly. Ilya -Original Message- From: John Porter To: [EMAIL PROTECTED] Sent: 07/19/2001 1:01 PM Subject: Re: aliasing - was:[nice2haveit] Sterin, Ilya wrote: But I thought

RE: what's with 'with'? (was: [aliasing - was:[nice2haveit]])

2001-07-19 Thread Sterin, Ilya
Why would you want it to print Monkey Hero, I would expect $_ to be localized, rather than global, which could prove more convenient. Ilya -Original Message- From: Stuart Rocks To: [EMAIL PROTECTED] Sent: 07/19/2001 1:13 PM Subject: Re: what's with 'with'? (was: [aliasing -

RE: what's with 'with'? (was: [aliasing - was:[nice2haveit]])

2001-07-19 Thread Sterin, Ilya
:) Ilya -Original Message- From: 'John Porter ' To: [EMAIL PROTECTED] Sent: 07/19/2001 1:46 PM Subject: Re: what's with 'with'? (was: [aliasing - was:[nice2haveit]]) Sterin, Ilya wrote: Well then maybe $_ can be a reference to a multidimensional array or hash, and temp vars can be access

RE: one more nice2haveit

2001-07-18 Thread Sterin, Ilya
How about print $a[$_]:$b[$_] for 0..$#a; or in the p6 case... print @a[$_]:@b[$_] for 0..$#a; Ilya -Original Message- From: raptor To: [EMAIL PROTECTED] Sent: 07/18/2001 12:14 PM Subject: one more nice2haveit hi, As I was programming i got again to one thing i alwas needed to

RE: nice2haveit

2001-07-13 Thread Sterin, Ilya
-Original Message- From: raptor To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: 7/13/01 10:19 AM Subject: Re: nice2haveit Two things i think is good to have it : 1. ALIAS keyword. - first reason is 'cause many people don't know that this is possible.. at least

RE: nice2haveit

2001-07-13 Thread Sterin, Ilya
Yes but can't the same be accomplished with... my $myhash = (%{$Request-{Params}}); print $myhash{abc}; Though again it copies the structure, I don't see how dereferencing can be unclear? Ilya -Original Message- From: raptor To: [EMAIL PROTECTED]; Sterin, Ilya Sent: 7/13/01 12:24 PM

RE: Curious: - vs .

2001-04-26 Thread Sterin, Ilya
$foo = [$one, $two, $three]; # creates an anonymous list. $foo = [$object method(foo, bar)]; This would interpret as $foo[0] == $object, etc... Ilya -Original Message- From: Buddha Buck [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 11:20 PM To: Piers Cawley Cc: Bart