Login  Register

Re: rs_settings

Posted by dxli on Aug 24, 2015; 8:37pm
URL: https://forum.librecad.org/rs-settings-tp5712040p5712046.html

considered a bad to thing to rely on raw pointers:

not the same as using reference, even though we can rewrite it to use reference:

QString readNumEntry(QString const& key, bool& ok)
{
if(ok){
   ok=...
}
}

It's trickier to do similar for getNearestEndPoint:

RS_Vector getNearestEndPoint(RS_Vector const& coord, double& dist)
{

if(dist<0.){
   dist=...
}
}




ravas wrote
谢谢

I understand now.

It's not possible with Python's name binding.