[Gambas-devel] About gb.gsl components

Emil Lenngren emil.lenngren at ...176...
Sun Jul 8 22:25:04 CEST 2012


What is the point having "has_convert" and "has_operators" and so on? Isn't
it easier to simply check if the "operators" and "convert" pointers are
NULL or not? That would also save processor cycles on x86 and x86_64 :)

/Emil

2012/7/8 Benoît Minisini <gambas at ...1...>

> Le 08/07/2012 18:34, Emil Lenngren a écrit :
> > More segfaults:
> >
> > Dim C As Complex = Null
> > Print 1 * C
> >
> > And
> >
> > Dim A As New Complex(1, 4)
> > Dim C As Complex = A
> > Dim I As Integer
> >
> > For I = 1 To 2
> >    Print Abs(C) ' or for example Print C * C
> >    C = Null
> > Next
> >
> > /Emil
> >
> > 2012/7/8 Benoît Minisini <gambas at ...1...
> > <mailto:gambas at ...1...>>
> >
> >     Le 08/07/2012 18:01, Emil Lenngren a écrit :
> >      > Hi. Some null checks seems to be required. For example:
> >      >
> >      > Dim A As Complex = NULL
> >      > Print Abs(A)
> >      >
> >      > -> Segmentation fault
> >      >
> >
> >     OK, should be fixed in revision #4912.
> >
> >     --
> >     Benoît Minisini
> >
> >
>
> Yep. Should really be better in revision #4913!
>
> --
> Benoît Minisini
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20120708/69af59db/attachment.html>


More information about the Devel mailing list