Re: [fltk.general] Do I need to delete what fltk::font(const char*, int) returns?

2007-04-28 Thread gga
Sanel Zukan wrote: > Hi, > >> I submitted STR#1662 to address this: >> http://www.fltk.org/str.php?L1662 >> >> ..as I think all pointer returns should document the >> return value's memory implications. > > Thanks for the submission, so it can stand as note for those who do > further changes :) >

Re: [fltk.general] Do I need to delete what fltk::font(const char *, int) returns?

2007-04-28 Thread Sanel Zukan
Hi, > I submitted STR#1662 to address this: > http://www.fltk.org/str.php?L1662 > > ..as I think all pointer returns should document the > return value's memory implications. Thanks for the submission, so it can stand as note for those who do further changes :) I'm fully agree with you. Also, do

Re: [fltk.general] Do I need to delete what fltk::font(const char *, int) returns?

2007-04-27 Thread Greg Ercolano
Greg Ercolano wrote: >> No, since is pointer to the internal data. If you use some specific fonts >> that fltk does not provide as internal ones, probably you can cache some >> of them :) > > If the docs don't cover this, they probably should [..] I submitted STR#1662 to address this:

Re: [fltk.general] Do I need to delete what fltk::font(const char *, int) returns?

2007-04-27 Thread Greg Ercolano
Sanel Zukan wrote: >> Like the subject asks: Do I need to delete what fltk::font(const char >> *,int) returns? >> Or am I supposed to leave it be because FLTK2 is caching it to share with >> others. >> I do repeatedly call this function a lot. So, I may implement a Font * >> cache of my own if

Re: [fltk.general] Do I need to delete what fltk::font(const char *, int) returns?

2007-04-27 Thread Sanel Zukan
> Like the subject asks: Do I need to delete what fltk::font(const char *,int) > returns? > Or am I supposed to leave it be because FLTK2 is caching it to share with > others. > I do repeatedly call this function a lot. So, I may implement a Font * cache > of my own if FLTK2 is not doing it.

[fltk.general] Do I need to delete what fltk::font(const char *, int) returns?

2007-04-26 Thread Davy Durham
FLTK2 Like the subject asks: Do I need to delete what fltk::font(const char *,int) returns? Or am I supposed to leave it be because FLTK2 is caching it to share with others. I do repeatedly call this function a lot. So, I may implement a Font * cache of my own if FLTK2 is not doing it.