Re: TIL redux (was Re: What will the Perl6 code name be?)

2000-10-26 Thread Chaim Frenkel
direct machine calls. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Accessing perl's command line switches

2000-09-29 Thread Chaim Frenkel
reload itself, but without the -S and -I commands the runtime environment is not fully reflected. And if running under -T the enviornment is not trusted.) Is there something there already? chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED

Re: A common event loop

2000-09-23 Thread Chaim Frenkel
imple'. And I can't imagine how this would work. Any statement could be interupted with an exception, but there is no mechanism to restart. This is just plain wrong. chaim -- Chaim FrenkelNonlinear Knowledge, I

Re: RFC 23 (v5) Higher order functions

2000-09-23 Thread Chaim Frenkel
^1 means $_[1], NOT $_[0] [snip. Last message repeated too many times.] If you have to do that, that is a good argument to follow the 'natural' inclination. Again, why insist on an index when it really is closer to an ordinal when reading the actual code. chaim -- Cha

Re: RFC 23 (v5) Higher order functions

2000-09-21 Thread Chaim Frenkel
to the RFC. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 85 (v2) All perl generated errors should have a unique identifier

2000-09-21 Thread Chaim Frenkel
ally looks at the value of $@ eval { ... } $@ !~ //; Why not make it simpler eval { } $@ !~ any( ); # Damian's Superpositions. # I keep reading Superstition :-) chaim -- Cha

Re: \z vs \Z vs $

2000-09-20 Thread Chaim Frenkel
$_ = "etc\n"; /etc$/; # true $_ = "etc"; /etc$/; # true In what way is this _wrong_? Is it under /m? But then wouldn't longest match cover the situation? And doesn't it only trigger at the end of a string? Within the string it

Re: RFC 85 (v2) All perl generated errors should have a unique identifier

2000-09-20 Thread Chaim Frenkel
don't think we want to start up a IANA. The $@-facility, $@-id pair could be considered unique for non-core errors. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 85 (v2) All perl generated errors should have a unique identifier

2000-09-20 Thread Chaim Frenkel
the message or even making the error string localizable. Consider allowing perl to emit error messages in French, Latin, or Klingon without breaking the code. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED]

Re: RFC 246 (v1) pack/unpack uncontrovercial enhancements

2000-09-18 Thread Chaim Frenkel
used. PRL The semantic is enhanced as much as possible under this constaint. PRL Additional changes to pack/unpack are listed in other proposals. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 230 (v1) Replace Cformat built-in with pragmatically-induced Cformat function

2000-09-18 Thread Chaim Frenkel
the header or before the first line, and just after the last or before the footer. I must of missed it but what is the mechanism to force a page break? And is there a way of keeping a format emission either together or to allow them to be spread across a page break? (keep together/ widow contr

Re: pack/unpack is damn unperlish. Explain them as Perl.

2000-09-18 Thread Chaim Frenkel
y integers if they are in the wrong endiness the bits get flipped properly. un so weiter. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 213 (v1) rindex and index should return undef on failure

2000-09-18 Thread Chaim Frenkel
me programming task a bit more straightforward. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 213 (v1) rindex and index should return undef on failure

2000-09-17 Thread Chaim Frenkel
"JP" == John Porter [EMAIL PROTECTED] writes: JP Chaim Frenkel wrote: Removing -1 as a valid result, could be a breakage (if someone is doing something weird with a negative result) JP What, like using it as an index into a substr? JP Bad Code is its own reward,

Re: Beefier prototypes (was Re: Multiple for loop variables)

2000-09-17 Thread Chaim Frenkel
ts. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 230 (v1) Replace Cformat built-in with pragmatically-induced Cformat function

2000-09-17 Thread Chaim Frenkel
variable(s) to watch range = qw(name other) footer = "$From{name} - $To{name}"; Would it be worthwhile to have a quick and dirty way of having the formatter determine the max width and then allow the header/footer to simply indicate left|center|right

Re: RFC 229 (v1) Variable interpolation on demand.

2000-09-17 Thread Chaim Frenkel
rpolate. Something akin to: $x = eval "$x" while $x =~ /[$@]/; But more intelligent. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Multiple random number generators (was Re: RFC 208 (v2) crypt() default salt)

2000-09-17 Thread Chaim Frenkel
generator allowing reseting or extraction of the next number via rand =item rand EXPR, RANDGEN_REF =item rand EXPR =item rand chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 213 (v1) rindex and index should return undef on failure

2000-09-17 Thread Chaim Frenkel
xceptional and quite common scenerios is bothersome. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 99 (v3) Standardize ALL Perl platforms on UNIX epoch

2000-09-14 Thread Chaim Frenkel
otten very confused. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 99 (v3) Standardize ALL Perl platforms on UNIX epoch

2000-09-14 Thread Chaim Frenkel
f you want to adjust for timezones just calculate the constant. Which since you are giving it in HHMM format you might as well just calculate directly. So what am I missing. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL

Re: RFC 213 (v1) rindex and index should return undef on failure

2000-09-14 Thread Chaim Frenkel
"NT" == Nathan Torkington [EMAIL PROTECTED] writes: NT Chaim Frenkel writes: Somehow I find if (40 == ($foo = substr($bar, index($bar, 'xyz' { } NT I don't understand your hypothetical code. substr() returns the NT substring of $bar from the position retutned by index, onwar

Re: RFC 213 (v1) rindex and index should return undef on failure

2000-09-13 Thread Chaim Frenkel
'), 20); # Returns undef If this is too much breakage what about only if it is the argument? $foo = "flabergasted"; $x = index($foo, 'abc'); substr($foo, $x, 20); # starts from the end chaim -- Chaim FrenkelNo

Re: RFC 213 (v1) rindex and index should return undef on failure

2000-09-13 Thread Chaim Frenkel
ing in SQL. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-09-12 Thread Chaim Frenkel
" valid? Would it be possible to make push(%hash, @keys) work? Doesn't look likely is @keys the keys, the values, or both? chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: $a in @b

2000-09-11 Thread Chaim Frenkel
-circuiting. yield EXPR - stop what I am doing now and give something else a a chance to do its things. And while you are doing that please take this EXPR from me. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-09-11 Thread Chaim Frenkel
stributive? @c = @a - @b; @c = @a + @b; @c = @a * @b; # cross product ? I'm not understaning your position. I could have used such an operation rather than rolling my own. And a module would be too heavy handed for such a simple concept. chaim -- Cha

Re: RFC 195 (v1) Retire chop().

2000-09-11 Thread Chaim Frenkel
d but none whatsoever RP for auto-newline-on-output (even if you could decide when to send it). Use this all the time. perl -wl (or #!/usr/local/bin/perl -wl) It autochomps and then adds back the newline on the way out. Great for one liners, and in general when doing line at a time filter processing. chaim

-a and @F autospliting

2000-09-11 Thread Chaim Frenkel
a regex operation, one or the other wouldn't have to be populated.) Thoughts? chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Beefier prototypes (was Re: Multiple for loop variables)

2000-09-11 Thread Chaim Frenkel
is a block and not an anon-hash? chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: $a in @b

2000-09-11 Thread Chaim Frenkel
"AS" == Ariel Scolnicov [EMAIL PROTECTED] writes: AS Chaim Frenkel [EMAIL PROTECTED] writes: yield EXPR - stop what I am doing now and give something else a a chance to do its things. And while you are doing that please take this EXPR from me. AS When you put it this way, is

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-09-11 Thread Chaim Frenkel
rk is conserved") but one is more efficient in terms of the user's brainpower. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-09-11 Thread Chaim Frenkel
rations to avoid redoing known work. And I've used hashes simply because I have no other 'lazy' choice. But the code becomes harder to read. From a conceptual level, when looking at the code (not the surrounding application) I'm no longer working with the data, but rather with a side ef

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-09-11 Thread Chaim Frenkel
management part. Which could probably be boiled down to converting the hash key into a bit. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-09-11 Thread Chaim Frenkel
n language design of why pop and push, shift and unshift are in, but union and intersection are not. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 90 (v3) Arrays: Builtins: merge() and demerge()

2000-09-10 Thread Chaim Frenkel
"DC" == Damian Conway [EMAIL PROTECTED] writes: DC I *still* think it should be "unmerge"! ;-) Hrmpf. It should be reshape. (Which would be its own inverse and saves a keyword.) chaim -- Chaim FrenkelNonlinear Knowledge, I

Re: RFC 114 (v2) Perl resource configuration

2000-09-10 Thread Chaim Frenkel
ll/program, but a simple 'standard' method might be worthwhile. use perlrc qw(:system :user); Though the range of options and settings are probably so vast that a single module capable of handling all scenerios would be so large and slow that all gains would be lost just in the invocation. chaim -- Cha

Re: $a in @b

2000-09-10 Thread Chaim Frenkel
hing about the block not being a loop, I think. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: $a in @b

2000-09-10 Thread Chaim Frenkel
ring: Why not spell it 'yield'? It seems to have all the right connotations. A sort of soft return. Gives of itself. Very polite. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 82 (v3) Arrays: Apply operators element-wise in a list context

2000-09-09 Thread Chaim Frenkel
ch less NT useful). Then how would one get the distributed effect? An apply operator? chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Beefier prototypes (was Re: Multiple for loop variables)

2000-09-09 Thread Chaim Frenkel
extra set of parenthesis could do the flattening. (only one list is 'visible' as the argument to the for. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Beefier prototypes (was Re: Multiple for loop variables)

2000-09-09 Thread Chaim Frenkel
"DC" == Damian Conway [EMAIL PROTECTED] writes: my_while { pred() } { # don't gimme no Tcl flac. ... } # no semicolon needed here! DC Just added to the RFC :-) How would the parser handle this? Some '}' would need ';' some don't. chaim -- Cha

Re: RFC 52 (v2) List context return from filesystem functions

2000-09-09 Thread Chaim Frenkel
th PS scratching this hard, but it seemed like a good direction :-( Anyone got PS any brilliant ideas before I withdraw it? -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 39 (v3) Perl should have a print operator

2000-09-08 Thread Chaim Frenkel
d an error is returned. Is there anywhere to report it? chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-09-04 Thread Chaim Frenkel
that's my block. For me the return takes away the thrust of the outside scalar context. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-09-04 Thread Chaim Frenkel
id perl4's and clearly I haven't run into something that depended upon this. I wonder how much it would hurt the -internals work. I think I'm not alone in wanting to make the list/array dichotomy go away. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL

Re: functions that deal with hash should be more liberal

2000-09-04 Thread Chaim Frenkel
reference to the hash named as an argument. The reference-taking: NT * permits them to change the data structures NT * is faster (one value, not all the key/value pairs) What if keys were extended to operate on arrays? Then keys $foo might be an acceptable extension. chaim -- Cha

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-09-03 Thread Chaim Frenkel
pletely TC expected. To you perhaps. I feel that the syntactical change is unexpected. But do you any objectsions to making this limited change? When the EXPR of a return is a literal list, it should not have its comma changed? Will my proposal bleed into anything else in the language? chaim

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-09-02 Thread Chaim Frenkel
change. I simply want that return (I'm not sure how to phrase this) be able to return only a scalar or an aggregate. It should be immune from having a scalar context pushed through from the caller and change the commas from a list seperator into the comma operator. chaim -- Cha

Re: RFC 178 (v1) Lightweight Threads

2000-09-02 Thread Chaim Frenkel
as to have protection. If you want the variable to be shared declare it. SWM Example 3: Closures (Ken's example) Aha, I get it. -internals has been assuming that one _must_ specify the sharing. You want it to be infered. I think that's asking for too much DWIMery. chaim -- Cha

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-09-01 Thread Chaim Frenkel
(7,8,9,10) } $x = fn(); # $x == 10 chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 120 (v2) Implicit counter in for statements, possibly$#.

2000-08-30 Thread Chaim Frenkel
yntax, JSD but I like the idea. If everything become objects under-the-hood, JSD then we could have: JSDfor $a (@array) { print "$a is at $a-index\n"; } JSD No, I'm not wild about that either, but it's an idea. -- Chaim FrenkelNonlinear Kn

Re: Pre-RFC: Require a warning on spaces after here-document terminator

2000-08-29 Thread Chaim Frenkel
see a possible issue print EOF;# or 'EOF' The following is not the end EOF But this one is EOF Though I don't really see a very good use for having trailing invisible characters. chaim -- Chaim Frenkel

Re: Threads and run time/compile time

2000-08-27 Thread Chaim Frenkel
d if every thread has to recompile all its own modules. SWM We could either discuss alternate approaches for RFC1, or I could SWM submit a new RFC for a thread architecture that gives me the SWM performance I want. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL

Something akin to ksh's () and () syntax

2000-08-25 Thread Chaim Frenkel
}) = split; } Damian, You have coroutines/generators out there. What about a data sink? Anything you have currently proposed that would do this neatly. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED

Re: RFC 99 (v2) Standardize ALL Perl platforms on UNIX epoch

2000-08-25 Thread Chaim Frenkel
nd. Would having a time object that is understood by perl be sufficient? It would smell and taste like an integer but would otherwise be magical. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED]

Re: RFC 140 (v1) One Should Not Get Away With Ignoring System Call Errors

2000-08-24 Thread Chaim Frenkel
he actual victim may not be the primal cause. sub foo { my $fh = open(); ... Lots more code ... return $fh; } $victim = foo; print $victim "I'm helpless"; chaim -- Chaim Frenkel

Re: RFC 140 (v1) One Should Not Get Away With Ignoring System Call Errors

2000-08-24 Thread Chaim Frenkel
Not a nice attitude. The failure is not close to the cause. Neither in time or space. If it were closer to the open, at least an intellegent message might be displayed. Your way, nothing but. *ARRGGHHH*, tainted data, in Foo.pl at line 37 chunk 12 (Why does that remind me of rogue?) cha

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-24 Thread Chaim Frenkel
be to have it become # $foo=1 $baz=2 @bar=(4) *blech*, I'm glad that you're doing the thinking. chaim "LW" == Larry Wall [EMAIL PROTECTED] writes: LW Chaim Frenkel writes: LW : LW P.S. I think we *could* let @foo and %bar return an object ref in scalar LW :

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-24 Thread Chaim Frenkel
rrently do in scalar context. Isn't this an internals issue? chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: On the case for exception-based error handling.

2000-08-22 Thread Chaim Frenkel
s for core functions. And optional for module authors. Then Fatal.pm and exception.pm could possibly be consolidated. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 132 (v1) subroutines should be able to return an lvalue

2000-08-20 Thread Chaim Frenkel
be defered until the first time it is called. (Unless Damian thinks that reaccessing it each time will make more sense.) chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: yoda 2

2000-08-16 Thread Chaim Frenkel
et the user know why. That selects either a non-local goto or a return mechanism depending upon context. (Dynamically within the control of a try/eval, or under pragmatic control requesting the non-local mechanism.) chaim -- Chaim FrenkelNonlinear Kn

Re: Dual nature (was Re: Exceptions and Objects)

2000-08-16 Thread Chaim Frenkel
"PS" == Peter Scott [EMAIL PROTECTED] writes: PS At 07:00 PM 8/16/00 -0400, Chaim Frenkel wrote: Perhaps, throw can carry a return value? throw {"return value"} $exception; If there is an active try/catch context then the $exception would be propogated, otherwise

Re: Towards a reasonable unwinding flow-control semantics.

2000-08-16 Thread Chaim Frenkel
"PS" == Peter Scott [EMAIL PROTECTED] writes: PS At 07:10 PM 8/16/00 -0400, Chaim Frenkel wrote: "PS" == Peter Scott [EMAIL PROTECTED] writes: PS 1. When an exception is thrown perl looks for the enclosing try block; if PS there is none then program death ensues. Err

Re: RFC 104 (v1) Backtracking

2000-08-16 Thread Chaim Frenkel
"MC" == Mark Cogan [EMAIL PROTECTED] writes: is equivalent to @a = (\$a, \$b, \$c); rather than what you wrote. MC Ah, so it is. I'd argue that that's broken and should be handled with map MC or for. Err, That's not an accident. Larry designed that in. chaim -- Cha

Re: Default filehandles(was Re: command line option: $|++)

2000-08-16 Thread Chaim Frenkel
. $STDOUT should always mean one and only one file at a time. Unless one wants to have a $DEFAULT filehandle and get rid of single arg select. chaim "JSD" == Jonathan Scott Duff [EMAIL PROTECTED] writes: JSD On Tue, Aug 15, 2000 at 06:53:30PM -0400, Chaim Frenkel wrote: What if you wan

Re: RFC 99 (v2) Standardize ALL Perl platforms on UNIX epoch

2000-08-16 Thread Chaim Frenkel
or calculating what the instanataneous time will be will not work. But your blurb would be a lie. How would one ensure the correct difference to the TAI? And what would be the translation to the system time? What do we do with stat(), utime(), sleep(), select(), events, etc. cha

Re: RFC 82 (listops in list context)

2000-08-16 Thread Chaim Frenkel
comes out, perhaps the situation would be better. (Now, if we add all that APL symbols ...) Thoughts? chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 99 (v2) Standardize ALL Perl platforms on UNIX epoch

2000-08-16 Thread Chaim Frenkel
program same system will break. Pick your poison. I'd rather have cross system break. But if the epoch were available then an adjustment could be made intellegently. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED]

Re: RFC 111 (v1) Whitespace and Here Docs

2000-08-16 Thread Chaim Frenkel
't strip the leading whitespace. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 84 (v1) Replace = (stringifying comma) with =

2000-08-16 Thread Chaim Frenkel
mm, I feel an RFC coming on my @arr :low(-32000) :high(+32000); my @population :low(1900) :high(2039); $population[1923] = 323000; How about my @population[1900:2039]; Looks funny though. chaim -- Chaim FrenkelNonlinear

Re: RFC 83 (v2) Make constants look like variables

2000-08-16 Thread Chaim Frenkel
at Larry has already semi-blessed the attribute version. The problem with the prefix version is that that is already reserved for my/our/local. And constant-ness in my mind is an attribute or modifer of the value or perhaps of the container. It has no bearing on the scoping or type of the val

Re: Make lvalue subs the default (was Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument)

2000-08-16 Thread Chaim Frenkel
ell the author. You are limited by what the author wrote. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument

2000-08-16 Thread Chaim Frenkel
"CN" == Chris Nandor [EMAIL PROTECTED] writes: CN Can we please cut down on the traffic to perl-announce, maybe make it CN moderated? Thanks, Perhaps, the esteemed Librarian could make the -announce a Bcc? chaim -- Chaim FrenkelNonlinear

Re: RFC 63 (v3) Exception handling syntax

2000-08-15 Thread Chaim Frenkel
ease. $SIG{DIE} should die. Action at a distance. Global. Can't know what other threads or modules want done here. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: Default filehandles(was Re: command line option: $|++)

2000-08-15 Thread Chaim Frenkel
OTHERFH\n"; print STDOOUT "This went to STDOUT\n"; STDOUT is _not_ the default filehandle. It is the currently selected filehandle when perl starts. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED]

Re: Default filehandles(was Re: command line option: $|++)

2000-08-15 Thread Chaim Frenkel
ue. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 99 (v2) Standardize ALL Perl platforms on UNIX epoch

2000-08-15 Thread Chaim Frenkel
others use their own epochs (MacPerl uses 1904, for PRL example). PRL All versions of Perl on all platforms should maintain time both PRL internally and externally as seconds since the UNIX epoch (00:00:00 01 PRL Jan 1970 UTC). -- Chaim FrenkelNonlinear Know

Re: RFC 105 (v1) Downgrade or remove In string @ must be \@ error

2000-08-15 Thread Chaim Frenkel
one point in perl's life defined(@arr) was false before anything was assigned to the array. At this point this is highly frowned upon. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 104 (v1) Backtracking

2000-08-15 Thread Chaim Frenkel
hole array @a, not an iteration MC over its elements. If I want to iterate over @a, I should have to do so MC explicitly, with a for() or map(). -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED]

Re: RFC 99 (v2) Standardize ALL Perl platforms on UNIX epoch

2000-08-15 Thread Chaim Frenkel
o the past : to past January 1st or July 1st, whichever is BB closer. Sorry, this makes no sense. BB Leap-seconds are a PITA for generic time routines. Why? chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL

Re: RFC 104 (v1) Backtracking

2000-08-15 Thread Chaim Frenkel
hen you're not looking is dangerous. Not unless you are coming from a math background or are an old basic programmer, and would like to have matrix operations built in. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Chaim Frenkel
s, as part of the core, we will have to live with whatever the system libraries give us. (I don't want to think about Leap Seconds just yet.) chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: errors and their keywords and where catch can return toand stuff like that

2000-08-14 Thread Chaim Frenkel
the object, then in the class for PS uncaught_handler. PS I think it's cool how this process is converging :-) -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 97 (v1) prototype-based method overloading

2000-08-14 Thread Chaim Frenkel
a frog $[1]"} sub listargs { throw argsyntax, "odd arguments to listargs" } Please do not do this. It is a mess. Action at a distance. There are otherways to solve the same problem. Why would anyone want to select a different method based upon the arguments. The calling routine

Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-13 Thread Chaim Frenkel
rce-name = "new name with all other parts left alone"; $fh = open $resource-asNativeFormat() Blech, but possible. chaim (Stolen parphrased but liberally from the Symbolics manual) -- Chaim FrenkelNonlinear Kn

Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-13 Thread Chaim Frenkel
e/stealing^wborrowing from sfio?) chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 85 (v1) All perl generated errors should have a

2000-08-11 Thread Chaim Frenkel
eople will still try ASstupid floating-point math tricks to get at the suberror code, but ASat least we'll know they didn't read the bit in the documentation ASwhere it will specifically warn _not_ to do this. -- Chaim FrenkelNonlinear Knowledge, I

Re: Data type and attribute syntax (was Re: RFC 89 (v1) Controllable Data Typing)

2000-08-11 Thread Chaim Frenkel
rtain data will not be aliased, etc, so that appropriate JH optimisations can be done. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 80 (v1): Exception objects and classes for builtins

2000-08-11 Thread Chaim Frenkel
invariants. Err, how does one differentiate between a 'good' entry and a 'bad' entry. PC Note too that we don't need to do any case based magic, we can and PC should use polymorphism for that. Why? Just because? chaim -- Chaim FrenkelNonlinear Knowledge, I

Re: Data type and attribute syntax (was Re: RFC 89 (v1) Controllable Data Typing)

2000-08-11 Thread Chaim Frenkel
"DS" == Dan Sugalski [EMAIL PROTECTED] writes: DS At 10:58 AM 8/11/00 -0400, Chaim Frenkel wrote: Someone on this list (TomC?) has supplied a major diatribe against const. DS Maybe, but I don't see what's wrong with: DS my $foo :const = 12; DS A nice, named, lexically scope

Re: RFC 80 (v1): Exception objects and classes for builtins

2000-08-11 Thread Chaim Frenkel
is action-at-distance of the worst stripe. Its the cheap and dirty way of doing OO. Let the object determine the calling convention for the method. I see very little reason to have two methods with different signatures. chaim -- Chaim FrenkelNonlinear Know

Re: RFC 94 (v1) Rename @ARGV to @ARGS

2000-08-11 Thread Chaim Frenkel
RL =head1 TITLE PRL Rename @ARGV to @ARGS PRL =head1 VERSION PRLMaintainer: Nathan Wiger [EMAIL PROTECTED] PRLDate: 11 Aug 2000 PRLVersion: 1 PRLStatus: Developing PRLMailing List: [EMAIL PROTECTED] PRLNumber: PRL 94 PRL Perl isn't C. Time to get over it. :-)

Re: RFC 85 (v1) All perl generated errors should have a

2000-08-11 Thread Chaim Frenkel
"NW" == Nathan Wiger [EMAIL PROTECTED] writes: NW Also, how about just $@-id? Shorter and I would argue the "unique_" is NW really redundant (id's are usually unique, hence the name NW "identifiers"). Not really. Consider: Chaim is an identifier. But not un

Re: RFC 88 (v1) Structured Exception Handling Mechanism

2000-08-10 Thread Chaim Frenkel
overhead. chaim -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 69 (v2) Standardize input record separator (for

2000-08-10 Thread Chaim Frenkel
ines array should contain five elements. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 73 (v1) All Perl core functions should return ob

2000-08-10 Thread Chaim Frenkel
then: DC non_lazy( a(), enervate(b()), c() ); -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL PROTECTED] +1-718-236-0183

Re: RFC 80 (v1) Exception objects and classes for builti

2000-08-10 Thread Chaim Frenkel
atch { JP # handle other exceptions JP }; JP And it would look silly to use "otherwise" there. JP You could make it so "catch" takes a list of 0 or more exception JP class names. JP -- JP John Porter -- Chaim Frenkel

Re: RFC 80 (v1): Exception objects and classes for builtins

2000-08-10 Thread Chaim Frenkel
{ ... } GB else { ... } GB } GB } GB continue { GB# code always executed (ie finally) GB } GB And the only new keywords are for the switch statement. -- Chaim FrenkelNonlinear Knowledge, Inc. [EMAIL

  1   2   >