RE: PMCs, setting, and suchlike things [forward from p6-internals]

2002-02-13 Thread Wizard
This came up on perl6-internals, and Dan liked the try suggestion and suggested That I post it here for comments. I'm not subscribed to p6-language, so you'll need to include me in any replies where you want a response from me. = Dave

Re: PMCs, setting, and suchlike things [forward from p6-internals]

2002-02-13 Thread Piers Cawley
Wizard [EMAIL PROTECTED] writes: This came up on perl6-internals, and Dan liked the try suggestion and suggested That I post it here for comments. I'm not subscribed to p6-language, so you'll need to include me in any replies where you want a response from me.

RE: PMCs, setting, and suchlike things [forward from p6-internals]

2002-02-13 Thread David Whipp
In a related matter, computer languages with Symbolic Mathematics capabilities, like Mapple, let you explicitly demand where do you want the operation to take place. This could be done naturally in perl6 using the colon meta-operator: my $plain = $c - $d : Math::Complex # 3.0 + 0i

Re: PMCs, setting, and suchlike things [forward from p6-internals]

2002-02-13 Thread Larry Wall
: This might be even more Complex than that - what if Complex can be : reduced? Should it? for instance: : : my Complex $c = 3+4i; : my Complex $d = 4i; : my $plain = $c / $d; : : Does $plain (which is actually '3' after reducing) get promoted to Complex, : or does the result from the division

RE: PMCs, setting, and suchlike things [forward from p6-internals]

2002-02-13 Thread Angel Faus
my $plain = $c - $d : Math::Complex # 3.0 + 0i sqrt(2 : Math::Integers) # - exception or not-a-number Not a bad idea,. I beleive that the perl6 adjective operator (for functions) will be a semicolon, not a colon. I'm not sure how it is planned to apply it to operators. Its also