<div class="gmail_quote">On Tue, Oct 6, 2009 at 7:09 PM, Matteo Agostinelli <span dir="ltr">&lt;<a href="mailto:agostinelli@gmail.com">agostinelli@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
as suggested by Aaron in a previous discussion, I am having a look at the<br>
calculator runner with the purpose of extending the capabilities of the runner<br>
by using libqalculate when it is available, otherwise falling back to the<br>
currently used &#39;qscript&#39; method. So here are my questions (sorry if some of<br>
them are stupid ones...):<br>
* how should I detect the presence of qalculate on the system? Should I let<br>
CMake find the library and then use the preprocessor (#ifdef, ....) thus making<br>
it a compile-time optional dependency?<br>
* it was mentioned that thread safety is important in this case. How can I find<br>
out if libqalculate is thread safe?<br>
* I think it would be nice if the runner respects the same settings of the<br>
plasmoid (if it&#39;s being used). Is there a way to do this, apart from reading<br>
the plasma-desktop-appletsrc file?<br>
<br>
BTW, while looking at the code I found a bug in the runner. The expression<br>
&#39;e+&#39; is interpreted as &#39;^&#39; instead of &#39;*10^&#39;. So if you type 2e+2 you<br>
currently get the wrong result (4 instead of 200). The same applies to &#39;e-&#39;.<br>
_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</blockquote></div><br>You can use KAlgebra code which is inside kdeedu.<br><br>If you&#39;re interested, tell me and i&#39;ll give you some pointers.<br><br>Aleix<br>