develooper Front page | perl.perl6.internals | Postings from September 2001

Re: Math functions? (Particularly transcendental ones)

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
September 10, 2001 14:13
Subject:
Re: Math functions? (Particularly transcendental ones)
Message ID:
5.1.0.14.2.20010910171046.02629cc0@pop.sidhe.org
At 09:15 PM 9/10/2001 +0100, Simon Cozens wrote:
>FWIW, it's just dawned on me that if we want all of these things to be
>overloadable by PMCs, they need to have vtable entries. The PMC vtable
>is going to be considerably bigger than we anticipated.

Who the heck is going to override arctangent? (No, don't tell me, I don't 
want to know)

For stuff like this I don't see a point in having a vtable entry for the 
transcendentals. atan is atan is atan. (Now, having said that, someone's 
going to define it for matrices or something wacky like that) At absolute 
worst I can see having a single vtable entry that gets passed in a 
"transcendental function number" or have the vtable be double-level for 
these, where there's just a "pointer to transcendental functions table" 
entry in the main vtable, so everyone shares the same table unless they 
want to get really extreme.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


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