<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;">And this would be reasonable and would not bother me nearly as much as two identical copies of things like this and there are dozens, perhaps more then a hundred at this point.<br><br><br>        //This next group are vector operations involving squaring and square root. ckrinke<br>        public double llVecMag(LSL_Types.Vector3 v)<br>        {<br>            m_host.AddScriptLPS(1);<br>            return LSL_Types.Vector3.Mag(v);<br>        }<br><br><br><div style="font-family: times new
 roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Mike Mazur <mmazur@gmail.com><br>To: opensim-dev@lists.berlios.de<br>Sent: Monday, June 9, 2008 2:11:38 PM<br>Subject: Re: [Opensim-dev] Two sets of LSL function implementation files.<br><br>
Hi,<br><br>On Tue, Jun 10, 2008 at 2:42 AM, Charles Krinke <<a ymailto="mailto:cfk@pacbell.net" href="mailto:cfk@pacbell.net">cfk@pacbell.net</a>> wrote:<br>> We now have two sets of the implementation of the LSL scripting functions<br>> themselves.<br>><br>> -- SNIP -- Keep common logic common<br>><br>> Certainly, I am not advocating a fire-drill, but rather an evolution back to<br>> our original mission. This is not to preclude any functional of Xengine or<br>> dotnetengine, but rather to concentrating on resolve the current duplication<br>> of code from our Common\ directory.<br><br>One approach XEngine and future engines could take is to subclass<br>LSL_BuiltIn_Commands and override any methods which are different.<br><br>This is actually already occurring, as LSL_BuiltIn_Commands is the<br>base class for OS_BuiltIn_Commands which is then a base class for<br>BuilIn_Commands (yes, it's misspelled). BuilIn_Commands is
 then<br>instantiated, from which the built in functions are called.<br><br>Anyway, +1 from me as well.<br><br>Mike<br>_______________________________________________<br>Opensim-dev mailing list<br><a ymailto="mailto:Opensim-dev@lists.berlios.de" href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br><a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br></div></div></div></body></html>