develooper Front page | perl.perl6.language | Postings from January 2004

Re: Semantics of vector operations

Thread Previous | Thread Next
From:
Jonathan Lang
Date:
January 23, 2004 19:54
Subject:
Re: Semantics of vector operations
Message ID:
20040124035349.91339.qmail@web40805.mail.yahoo.com
Dave Whipp wrote:
> But, presumably, you could write a macro that has a whitespace-eater
> encoded
> somehow. That is,
> 
> macro leach() { chomp_trailing_whitespace; return "�" }
> macro reach () { chomp_leading_whitespace; return "�" }
> 
> then the macro magic would expand "leach eq reach" as "�eq�" (which,
> hopefully, it then re-parses as a single token^Woperator). This doesn't
> solve the generalized problem of disambiguating, though I could see a
> "_" operator defined as a macro that eats all its surrounding 
> whitespace.

...making it a "nospace" character (or is that a "no_space" character? 
Same thing?)

You wouldn't be able to say "chomp_trailing_whitespace" if you did this,
though.  

=====
Jonathan "Dataweaver" Lang

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About