[Gambas-user] External C function usage error - IPC queue usage
Doug Hutcheson
owlbrudder at gmail.com
Tue Jan 23 23:57:45 CET 2018
On Tue, 2018-01-23 at 14:42 -0500, T Lee Davidson wrote:
> On 01/23/2018 11:40 AM, Fabien Bodard wrote:
> > 2018-01-23 1:05 GMT+01:00 T Lee Davidson <t.lee.davidson at gmail.com
> > <mailto:t.lee.davidson at gmail.com>>:
> >
> > On 01/22/2018 06:58 PM, Doug Hutcheson wrote:
> > >>
> > > Hi Lee. Would it not be "&0" (ampersand zero) not "&o" ?
> > > Just a hunch.
> > > Cheers,
> > > Doug
> >
> > According to http://gambaswiki.org/wiki/cat/constants
> > <http://gambaswiki.org/wiki/cat/constants>, "&0" would be a
> > hexadecimal representation.
> >
> > I tried '&0600'. Result in decimal: 1536.
> >
> >
> > Hexadecimal short signed integers.&H1F5, &HFFFF, &H0000FFFF, &FFFF
> > Hexadecimal signed integers. &H10BF332E, &10BF332E
> > Hexadecimal unsigned integers. &H8000&, &HFFFF&
> > Binary integers. &X1010010101,
> > %101001011
> >
> > Where did you read that, Lee ?
> >
> > http://gambaswiki.org/wiki/cat/constants
> >
> > There is a lack between doc and gb source code ...
> >
> > --
> > Fabien Bodard
> >
>
> Where did I read, what, Fabien? That "&0" would be a hexadecimal
> representation?
>
> From the first two lines you posted from the referenced doc page.
> Take a look at the last example on each of those lines.
>
> "&FFFF": Ampersand followed by a hexadecimal number. "0" is a
> hexadecimal number.
> "&10BF332E": Again, ampersand followed by a hexadecimal number.
>
> Or, maybe that's not what you were referring to about what I read.
>
> And yes, as Tobi pointed out, the doc doesn't quite reflect the state
> of the source code.
>
>
Yes, I was quite wrong to suggest &0. Stupid mistake. I was dimly
thinking of the C/C++ representation 0x for hex and %x for octal, but
I didn't even get those right. (Crawls back under rock, mumbling).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180124/35838c0c/attachment.html>
More information about the User
mailing list