Re: apo 2

2001-05-04 Thread Michael G Schwern
On Fri, May 04, 2001 at 09:51:53AM -0400, John Porter wrote: And btw . . . Wouldn't $thing has property make more sense than $thing is property $foo has true doesn't flow as well as $foo is true. Dunno quite what the other expected uses are. -- Michael G. Schwern

Re: sandboxing

2001-05-04 Thread Michael G Schwern
of malloc wrapper at least. Anyhow, if you need to set a certain flag when compiling perl6 to allow certain sandbox features (I can see certain checks necessary being in very hot parts of the code) that should be ok. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern

Re: Apoc2 - STDIN concerns

2001-05-04 Thread Michael G Schwern
the basic argument... compare how often you dup a filehandle with how often you read from one. Duping is swamped by several orders of magnitude. Dup with $fh = $STDIN.copy; (or whatever). $line = $STDIN.next should still work normally. -- Michael G. Schwern [EMAIL PROTECTED]http

Re: Apoc2 - STDIN concerns

2001-05-04 Thread Michael G Schwern
, if overloading is implemented well, as I expect it to be, there's no reason you couldn't just have a special filehandle class that redefines the copy constructor. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job

Re: .NET

2001-05-03 Thread Michael G Schwern
On Wed, May 02, 2001 at 04:26:27PM -0500, Jarkko Hietaniemi wrote: You are saying that the Clippy wasn't originally and truly annoying? :-) Annoying enough to spawn vigor! http://www.red-bean.com/~joelh/vigor/ -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6

Re: Please make last work in grep

2001-05-02 Thread Michael G Schwern
one such button, so I have to interrupt the grep after I find it (otherwise the $1, $2, $3, $4 might be unset). (grep {...} @stuff)[0] will work, but its inelegant. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED

Re: Please make last work in grep

2001-05-02 Thread Michael G Schwern
if the block has no side effects... oh wait, everything in Perl has a side effect. ;) -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One I was *meant* to mount your donuts.

Re: Flexible parsing (was Tying Overloading)

2001-04-29 Thread Michael G Schwern
to cover the .perlrc discussion. Is the old archive still around? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One But in the year 2006, the entire world shall be united. Then the God followers

Re: a modest proposal Re: s/./~/g

2001-04-29 Thread Michael G Schwern
On Sat, Apr 28, 2001 at 10:39:01AM -0700, Larry Wall wrote: Now we just need to make ... ___ ... mean something exceptional. ___ ... ___ is valid. :) -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee

Re: Flexible parsing (was Tying Overloading)

2001-04-29 Thread Michael G Schwern
On Sun, Apr 29, 2001 at 11:44:24AM -0400, Dan Sugalski wrote: At 04:30 PM 4/29/2001 +0100, Michael G Schwern wrote: To use a Perl 5 example, consider the simple setting of use strict as a general site policy. Basicaly, most of the Perl code in your /usr/bin will explode when you try to run

Re: Flexible parsing (was Tying Overloading)

2001-04-29 Thread Michael G Schwern
On Sun, Apr 29, 2001 at 12:49:28PM -0400, Dan Sugalski wrote: At 05:37 PM 4/29/2001 +0100, Michael G Schwern wrote: By optional I take it you mean an admin can choose to define their own site policy or not? No. Optional in that you have to do a use SomePolicyThingWeHaventDecided; to put

Re: Flexible parsing (was Tying Overloading)

2001-04-29 Thread Michael G Schwern
need to get my eyes/head examined. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One i gave them some paste do that funky dance, white boy i laughed my ass off -- Fmh

Re: C or SH like string cat proposal

2001-04-26 Thread Michael G Schwern
runs into its territory, but I don't think yours would cause problems (except for the rash of patients admitted to local hospitals with bleeding eyes). -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job

Re: Dot can DWIM without whitespace

2001-04-26 Thread Michael G Schwern
to hard to find bugs when someone mispelled something. I think it would also throw Dan into convusive fits. Additionally, it would make finding method calls lexically near impossible. I'd like to keep Perl 6 refactorable as much as possible. -- Michael G. Schwern [EMAIL PROTECTED]http

Re: Dot can DWIM without whitespace

2001-04-26 Thread Michael G Schwern
obvious reasons (as with decimal numbers above), let's avoid it here. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One They just don't make any good porn music anymore, do they? - WXDX DJ

Re: Strings vs Numbers (Re: Tying Overloading)

2001-04-24 Thread Michael G Schwern
. This will lead to subtle bugs because someone accidentally put a space after the . and didn't notice. Its just cutting it too thin. Don't go this route unless others are exhausted first. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL

Re: Sane + string concat proposal

2001-04-24 Thread Michael G Schwern
can't easily put quotes around. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One If you are only one year old, and this is the first time you have ever seen a burger, your related neurons

Re: Sane + string concat proposal

2001-04-24 Thread Michael G Schwern
to understand, Perl 6 version is still ambiguous The Perl 5 version is also ambiguous as you didn't catch the precidence problem I noted eariler. ;) -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Sane + string concat proposal

2001-04-24 Thread Michael G Schwern
those quotes make my eyes bleed. Oh, not to seed the clouds or anything, but what about += and .=? Any proposal will have to deal with those. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Do

Re: Strings vs Numbers (Re: Tying Overloading)

2001-04-24 Thread Michael G Schwern
%40perl.org/msg06550.html Basically talking about the problems of trying to use the same operator for strings and concat in a typeless language. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Beer

Re: how about just juxtaposing? (Re: Sane + string concat proposal)

2001-04-24 Thread Michael G Schwern
to concatinate there? Also, consider this... print foo bar; Is that 'print foo(bar);' or 'print foo().bar;' in Perl 5? I can see that the indirect objects can be painful That's ok, just kill indirect objects. Ooop, I'll be leaving before Nathan finishes loading his gun. ;) -- Michael G

YA string concat proposal

2001-04-24 Thread Michael G Schwern
'.=' functionality, which I'd rather not lose (especially after having made fun of $foo = $foo . 'bar'; type code). PS It doesn't have to specifically be cc and ce. Just so long as it matches /^[a-z]{2}$/ and /^[a-z]e$/ -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern

Re: YA string concat proposal

2001-04-24 Thread Michael G Schwern
things significantly easier. (Postpend (is that a word?) doesn't make things particularly easier either, but people will expect it and its a bit more common case.) -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED

Re: Larry's Apocalypse 1

2001-04-16 Thread Michael G Schwern
common. It is a servicable solution, just be ready for the extra problems. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One ...and that, children, is how to clean and load a .38 revolver

Re: Larry's Apocalypse 1

2001-04-15 Thread Michael G Schwern
once it is compiled and installed, interpreted programs do not have this luxury. Think of it this way... what would happen if Borne Shell suddenly decided it was going to introduce fundemental incompatibilities? (I'm sure they already have...) -- Michael G. Schwern [EMAIL PROTECTED]http

Re: Larry's Apocalypse 1

2001-04-05 Thread Michael G Schwern
have perl one-liners inside them might be troublesome. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl6 Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One What makes an animal escape from danger? When a small fish sense a big fish coming, it es

Re: Auto-install (was autoloaded...)

2001-02-09 Thread Michael G Schwern
into the program) *plus* the normal man page generation and install. That's how I normally do things. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Only mindless violence can raise my spirits now!

Re: Auto-install (was autoloaded...)

2001-02-09 Thread Michael G Schwern
Deep XS Bug that we couldn't quite dig out a while ago. Or maybe it was in Archive::Tar... one of the two. Anyhow, I'm not worried about them much. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Any sufficiently encapsulated hack is no longer a hack.

Re: Auto-install (was autoloaded...)

2001-02-08 Thread Michael G Schwern
require certain interaction and configuration (LWP, Net::FTP, most any DBD driver...). Those can't be done automagically, but if we could do 80% then that's ok. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ If you have to shoot, shoot! Don't talk

Re: Auto-install (was autoloaded...)

2001-02-08 Thread Michael G Schwern
vapor yet, but its all within the realm of "solved problems". -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ BOFH excuse #301: appears to be a Slow/Narrow SCSI-0 Interface problem

Re: Auto-install (was autoloaded...)

2001-02-08 Thread Michael G Schwern
with the bytecode you windup needing a par-style utility anyway. 4) What Brenden said 5) Do YOU have a stable bytecode compiler?? I don't. Perhaps it wasn't clear, I don't mean to have par as part of 6.0, I mean to have it out, like, maybe next month if I decide to work on it. -- Michael G. Schwern

Re: Auto-install (was autoloaded...)

2001-02-08 Thread Michael G Schwern
, and we have a well-developed Perl module for it. Later it can be changed to anything we want. Encapsulation++ -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Maybe they hooked you up with one of those ass-making magazines. -- brian d. foy as misheard by Michael

Re: Really auto autoloaded modules

2001-02-02 Thread Michael G Schwern
priate module and exports the appropriate function. PS Actually, it REALLY exists because Arnar came up with a neat trick and I ran with it. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ The eye opening delightful morning taste of expired cheese bits in sour milk!

Re: Why shouldn't sleep(0.5) DWIM?

2001-02-01 Thread Michael G Schwern
On Wed, Jan 31, 2001 at 04:44:00PM -0600, Jarkko Hietaniemi wrote: Or explore various garbage collection alternatives. No good, the mob wouldn't be happy. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ purl Hey Schwern! honk, honk, honk, honk, honk, honk, honk

Re: Really auto autoloaded modules

2001-02-01 Thread Michael G Schwern
AnyLoader; Carp::croak("This is going to hurt the Perl community more than it ". "is going to hurt you!"); Its not quite what you're talking about (yet) but we can extend it to flesh out the idea of automagical autoloading. -- Michael G. Schwer

Re: Really auto autoloaded modules

2001-02-01 Thread Michael G Schwern
. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Summer sun beats down I sigh and wait for winter warm paste enemas. -- mjd

Re: Why shouldn't sleep(0.5) DWIM?

2001-01-31 Thread Michael G Schwern
is it doesn't really require any code translations, you can get away with overriding the core functions instead: sub sleep { CORE::sleep(int($_[0])); } sub alarm { CORE::alarm(int($_[0])); } sub time { int CORE::time } something like that. hand-wave -- Michael G. Schwern

Re: Why shouldn't sleep(0.5) DWIM?

2001-01-31 Thread Michael G Schwern
on those? Or doesn't it? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Any sufficiently encapsulated hack is no longer a hack.

Re: Why shouldn't sleep(0.5) DWIM?

2001-01-31 Thread Michael G Schwern
standpoint. Perhaps some of the more grossly UNIX specific things like getpwnam's extended family and the SysV IPC stuff? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ MERV GRIFFIN!

Why shouldn't sleep(0.5) DWIM?

2001-01-30 Thread Michael G Schwern
can't Perl? Smells like a C holdover to me. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ If you have to shoot, shoot! Don't talk. -- Tuco, "The Good, The Bad And The Ugly"

We're overcaffinated!

2001-01-29 Thread Michael G Schwern
... -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ And it's made from all-natural baby skin, so you know it's good for the environment. http://www.goats.com/archive/000606.html

Re: RFC195: Do not remove 'chop' PLEASE!

2001-01-29 Thread Michael G Schwern
t, but no. The hash effect is pervasive and chop() now has a simple prototype of @ in 5.7.0. (where before it was undefined) -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Plus I remember being impressed with Ada because you could write an infinite loop without

Re: RFC195: Do not remove 'chop' PLEASE!

2001-01-28 Thread Michael G Schwern
On Sun, Jan 28, 2001 at 04:28:08PM +0100, [EMAIL PROTECTED] wrote: Aliasing again. They keys are copies, the values aliases. How bizarre? Why does it work that way? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ "None of our men are "experts."...

Re: JWZ on s/Java/Perl/

2001-01-28 Thread Michael G Schwern
under Windows, mostly through MFC junk or peeking in the registry. It would probably be good to do it for the MacOS versions, too. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ That which stirs me, stirs everything. -- Squonk Opera, "Spoon"

Re: JWZ on s/Java/Perl/

2001-01-28 Thread Michael G Schwern
done, the rest is just a matter of extending File::Spec (trivial and pure Perl). -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ mendel ScHWeRnsChweRNsChWErN SchweRN SCHWErNSChwERnsCHwERN sChWErn ScHWeRn schweRn sCHWErN

Re: JWZ on s/Java/Perl/

2001-01-28 Thread Michael G Schwern
On Mon, Jan 29, 2001 at 12:10:31AM -0600, Jarkko Hietaniemi wrote: Trivial? *cough* *snigger* I'd write it up for you right now, but its too big to fit in the margin. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Skrewtape I've heard that semen tastes

Re: RFC195: Do not remove 'chop' PLEASE!

2001-01-27 Thread Michael G Schwern
the other day dealing with Text::Wrap guts. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ BOFH excuse #69: knot in cables caused data stream to become twisted and kinked

Re: RFC195: Do not remove 'chop' PLEASE!

2001-01-27 Thread Michael G Schwern
On Sun, Jan 28, 2001 at 01:26:09AM +0100, [EMAIL PROTECTED] wrote: On Sat, Jan 27, 2001 at 05:13:23PM -0500, Michael G Schwern wrote: This one not only modifies its arguments (or $_ when called without), it also has the right prototype and works on lists: sub chop (@) { my

Re: RFC on Coexistance and simulaneous use of multiple module version s?

2001-01-26 Thread Michael G Schwern
G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Only mindless violence can raise my spirits now!

Re: RFC from a newbie: Method References

2000-12-16 Thread Michael G Schwern
); $meth_ref-(); is equivalent to this.. $obj-foo(@some_stuff); You could even make the meth_ref take additional (or overriding) arguments. Its a good idea, I'll put Class::MethRef on CPAN soon. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/

Re: RFC 243 (v1) No special UPPERCASE_NAME subroutines

2000-09-21 Thread Michael G Schwern
CAPS LOCK KEY STUCK STOP CANNOT PROGRAM PERL REVERTING TO BASIC STOP SEND HELP QUICK STOP -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse When faced with desperate circumstances, we

Re: RFC 266 (v1) Any scalar can be a hash key

2000-09-21 Thread Michael G Schwern
. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse Maybe they hooked you up with one of those ass-making magazines. -- brian d foy as misheard by Michael G Schwern

Re: RFC 267 (v1) Eliminate dump() function

2000-09-21 Thread Michael G Schwern
On Thu, Sep 21, 2000 at 03:55:21AM -, Perl6 RFC Librarian wrote: Eliminate dump() function I didn't even know it existed. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse Any

Re: RFC 264 (v1) Provide a standard module to simplify the creation of source filters

2000-09-21 Thread Michael G Schwern
"Perhaps you meant '$term'?\n" if /(peterbuilt|$term)/i $term ne \$1; s/$term/;/g; } Filter::Util::Call's way of doing things is just too twisted and strange. Anyhow, I guess this is an elaborate "me too&

Re: RFC 259 (v1) Builtins : Make use of hashref context for garrulous builtins

2000-09-19 Thread Michael G Schwern
37: Positional Return Lists Considered Harmful RFC 127: Sane resolution to large function returns Don't forget RFC 48 which discusses a localtime() replacement returning a hash. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant

Re: RFC 257 (v1) UNIVERSAL::import()

2000-09-19 Thread Michael G Schwern
cluck('The Royal Air Force does not allow chickens to '. 'fly planes!'); } -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse But why? It's such a well de

Re: RFC 257 (v1) UNIVERSAL::import()

2000-09-19 Thread Michael G Schwern
On Tue, Sep 19, 2000 at 08:06:58AM -0700, Nathan Wiger wrote: If exports() could take arbitrary symbols, just like @EXPORT Yes, that's the idea. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee

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

2000-09-18 Thread Michael G Schwern
and assume that by the time users start writing programs with numbers 2**31 they'll have read that far. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse Our business in life

Re: RFC 163 (v2) Objects: Autoaccessors for object data structures

2000-09-18 Thread Michael G Schwern
toaccessor = @{[@stuff]}; If we make it copy the value of @stuff first (like $r-autoaccessor = [@stuff] currently does) then this all encourages inefficiencies. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl

Re: RFC 163 (v2) Objects: Autoaccessors for object data structures

2000-09-18 Thread Michael G Schwern
sure I understand ("autoderef bad, but forced copy bad too") but want to make 100% sure. That's about it. *grunt* -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse Plus I reme

Re: RFC 254 (v1) Class Collections: Provide the ability to overload classes

2000-09-18 Thread Michael G Schwern
); bless $inner = $class.'::db'; } It works, but to quote Tim Bunce there... *sigh*. So anyhow, yes, this is a big, icky problem. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse

Re: RFC 218 (v1) Cmy Dog $spot is just an assertion

2000-09-18 Thread Michael G Schwern
On Mon, Sep 18, 2000 at 09:48:27AM +0100, Piers Cawley wrote: Michael G Schwern [EMAIL PROTECTED] writes: Nope. fields::new() basically just does Cbless [\%{"$class\::FIELDS"}], $class, but the current pseudohash implementation doesn't care if something is an object or not

Re: RFC - Interpolation of method calls

2000-09-18 Thread Michael G Schwern
t; already works fine and the world spins on. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse But why? It's such a well designed cesspool of C++ code. Why wouldn't you want to ha

Re: RFC 163 (v2) Objects: Autoaccessors for object data structures

2000-09-18 Thread Michael G Schwern
h has some other restrictions? Read RFC 241 for a brief overview of pseudo-hash problems. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse Sometimes these hairstyles are exaggerated beyon

Re: RFC 163 (v2) Objects: Autoaccessors for object data structures

2000-09-18 Thread Michael G Schwern
On Mon, Sep 18, 2000 at 01:26:45PM -0700, Glenn Linderman wrote: Michael G Schwern wrote: Similar mistaken logic leads to "globals are faster than lexicals". Maybe so, but I'd think lexicals would be faster, because more of the lookup is done at compile time rather than runtime

Re: RFC 252 (v1) Interpolation of subroutines

2000-09-18 Thread Michael G Schwern
. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse I'm not cute, I'm evil. -- Diablo www.goats.com

Re: RFC 223 (v1) Objects: Cuse invocant pragma

2000-09-18 Thread Michael G Schwern
') and Cparam('foo') regularly, I can see why it is desired. But it doesn't have to be easy. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse But why? It's such a well designed cesspool of C

Re: RFC 253 (v1) UNIVERSAL::require()

2000-09-18 Thread Michael G Schwern
until much futher on down in the code. Garbage In, Error Out. If you really want it, the wrapper require() is trivial. DTRT? Data Terminal Ready, Tim? Document Filing and Retrieval Tedium? -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid

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

2000-09-18 Thread Michael G Schwern
. "printf is like print, except..." which makes it much easier to explain. It provides that bit of mental runway to get the reader's mind off the ground. The differences between sprintf and printf are very easy to explain. "Equivalent to Cprint sprintf" -- Michael G Sch

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

2000-09-18 Thread Michael G Schwern
rime example is fixed-width data parsing. Most people reach for substr() or a regex, but the best solution (as pointed out in perlfaq5) is pack. Yet it still remains obtuse and I'm largely cargo-culting when I use it. Think about a user who does not understand regexes. They typically have no ide

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

2000-09-18 Thread Michael G Schwern
we'll get a perlpacktut man page. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse If you only hear one song this year there's something terribly wrong with you.

Re: RFC 100 (v2) Embed full URI support into Perl

2000-09-17 Thread Michael G Schwern
Case-sensitive vs insensitive filesystems, maximum filename length, maximum path length, restrictions on the filename, restrictions on the suffix (ie. 8.3 DOS). Maybe we should just go back to paper. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stu

Re: RFC - Interpolation of method calls

2000-09-17 Thread Michael G Schwern
to have a new version of the RFC ready without the first even having made it out to the public! -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse Many people think that an UFO is probably

Re: RFC - Interpolation of method calls

2000-09-17 Thread Michael G Schwern
, my font doesn't even display them right. *grumble* -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse BOFH excuse #270: Someone has messed up the kernel pointers

Re: RFC 241 (v1) Pseudo-hashes must die!

2000-09-17 Thread Michael G Schwern
. RFC 122 talks about implementing hashes which are C-like structs in Perl. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse Don't ask me, lady. I live in beer. -- fish http

Re: RFC 244 (v1) Method calls should not suffer from the action on a distance

2000-09-16 Thread Michael G Schwern
conflicting with. PS Shouldn't this be on perl6-language-objects? -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse Cheating is often more efficient. - Seven of Nine

Re: RFC 241 (v1) Pseudo-hashes must die!

2000-09-16 Thread Michael G Schwern
sense in the restrictions of Perl 5 syntax, but we've got room now to rethink the problem from scratch. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse But unluckily most Germans here

Re: RFC 71 (v2) Legacy Perl $pkg'var should die

2000-09-16 Thread Michael G Schwern
s a single-quote, so That's a good argument. Unambiguating the language and simplifying the parser. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse When faced with desperate circumstance

Re: RFC 103 (v2) Fix C$pkg::$var precedence issues with parsing of C::

2000-09-16 Thread Michael G Schwern
ngable functions. If you find yourself needing that sort of thing often, perhaps it should be rewritten as OO. I'm feelin' an RFC retraction comin' on... [Schwern rubs his black gloved hands gleefully and cuts another notch into his black hat.] -- Michael G Schwern http

Re: RFC 103 (v2) Fix C$pkg::$var precedence issues with parsing of C::

2000-09-16 Thread Michael G Schwern
u're coming to YAPC::Europe, I definately owe you a few beers. If nothing else than for the hell I've been giving you over here-docs. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse MORONS!

Re: RFC 237 (v1) hashes should interpolate in double-quoted strings

2000-09-15 Thread Michael G Schwern
oo 42 bar 13 The idea of interpolating a hash is cool... but is seperating each pair by $/ really useful? A comma or $" sees to make more sense. Could you show some examples of practical usage? -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED]

Re: RFC 222 (v1) Interpolation of method calls

2000-09-15 Thread Michael G Schwern
ariable method calls. That is: my $meth = 'species'; print "How much is that $pet-$meth() in the window?"; This should deparse to: my $meth = 'species'; print "How much is that ".$pet-$meth()." in the window?"; -- Michael G Schwern http://www.pobox.com/~s

Fwd: [Re: [FWP] Comic goodness]

2000-09-15 Thread Michael G Schwern
... Send email to [EMAIL PROTECTED] with message _body_ unsubscribe - End forwarded message - -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse Plus I remember being

Re: RFC 238 (v1) length(@ary) deserves a warning

2000-09-15 Thread Michael G Schwern
to overhaul prototyping, cool. But I don't see anything to allow Clength $string and Clength @array live together. Its a big RFC, I probably missed it. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-15 Thread Michael G Schwern
ons glibly. TAG } } } } Right? You're not going to just indent the terminator because you can. Its going to go along with indenting the text. So indenting the terminator and indenting the text are linked. If you do one, you want to do the other. -- Michael G Schwern http://www.pobox.co

Re: RFC 227 (v1) Extend the window to turn on taint mode

2000-09-15 Thread Michael G Schwern
). -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse When faced with desperate circumstances, we must adapt. - Seven of Nine

Re: RFC 227 (v1) Extend the window to turn on taint mode

2000-09-15 Thread Michael G Schwern
the availablity of C compilers is no longer an issue. Having had a taste of the hacks one must do to pull off an all-perl version, XS seems the simplest route. PS I've moved this discussion to perl6-language. Reply accordingly. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL

Re: RFC 71 (v2) Legacy Perl $pkg'var should die

2000-09-15 Thread Michael G Schwern
$hash{a'b} doesn't DWIM... not exactly a stunning problem. (Yes, I am the author of D'oh::Year ;) -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse An ice cream has its unique frequencyAre

Re: RFC 236 (v1) Change the way $SIG{__WARN__} and $SIG{__DIE__} are used

2000-09-15 Thread Michael G Schwern
even be that we should kill them and replace them with something better. Has this yet been discussed? -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse Sometimes these hairstyles

Re: Cross-referencing RFC 186 with RFC 183 and RFC 79

2000-09-14 Thread Michael G Schwern
n to muddle the perl core with test switches, it can be done easier as a module. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse BOFH excuse #39: terrorist activities

Re: Cross-referencing RFC 186 with RFC 183 and RFC 79

2000-09-14 Thread Michael G Schwern
m. You're probably thinking of individual programs. $ pod2tests --inplace foo.pl foo.pl.ok Something like that would make sense. Eliminating redundancy is one thing, eliminating TMTOWTDI is another. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTE

RFC - Interpolation of method calls

2000-09-14 Thread Michael G Schwern
=head1 TITLE Interpolation of method calls =head1 VERSION Maintainer: Michael G Schwern [EMAIL PROTECTED] Date: 14 Sep 2000 Version:1 Mailing List: [EMAIL PROTECTED] =head1 ABSTRACT Method calls should interpolate in double-quoted strings, and similar locations

Re: RFC 218 (v1) Cmy Dog $spot is just an assertion

2000-09-14 Thread Michael G Schwern
On Thu, Sep 14, 2000 at 02:19:38PM +0100, Piers Cawley wrote: Michael G Schwern [EMAIL PROTECTED] writes: package Dog; use fields qw(this night up); my Dog $ph = []; $ph-{this} = "that"; That works? I thought you had to do: my Dog $self = fields

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-14 Thread Michael G Schwern
OR } } } } } By combining two of the solutions, my problem is solved. I can indent my here-docs and yet keep the output a single line. Show me where this fails and I'll shut up about it. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTE

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-14 Thread Michael G Schwern
mount of space a tag is indented is the amount which will be clipped off of each line of the here-doc. Tabs will BNOT be expanded. 2. POD end tags may now be followed by trailing whitespace -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Anoth

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-14 Thread Michael G Schwern
it would be best to distribute a collection of commonly used ones as a module with perl. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse slick and shiny crust over my hairy anus constipation sucks -- Ken Flagg

Re: Drop here docs altogether? (was Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs))

2000-09-14 Thread Michael G Schwern
o counting whitespace again. And as Glen pointed out, what about that leading newline? Can I scream now? -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse MORONS!

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-14 Thread Michael G Schwern
On Thu, Sep 14, 2000 at 02:51:14PM -0700, Glenn Linderman wrote: Michael G Schwern wrote: Well, OK, so now we're talking shades of opinion. You'd agree it works, though, and quite effectively. But you'd disagree about its aesthetics, and its performance. The former is much less

Re: RFC 226 (v1) Selective interpolation in single quotish context.

2000-09-14 Thread Michael G Schwern
$login:*.* $ purge sys$login:$filename $! $ exit but its not very idiomatic and YMMV. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse I worship Satan and Santa likes me

Re: RFC 217 (v1) POD needs comment command. POD needs a reorder command.

2000-09-13 Thread Michael G Schwern
ntally run-on ambiguities of multi-line comments. Its also alot easier to parse. PS Keep in mind that =for can be replaced with =begin/=end in all cases. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee

<    1   2   3   4   >