poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] doc: fix code snippets and typos in manual


From: Jose E. Marchesi
Subject: Re: [PATCH] doc: fix code snippets and typos in manual
Date: Thu, 30 Sep 2021 16:10:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> On Thursday, September 30, 2021 12:58:53 AM CDT Jose E. Marchesi wrote:
>
> Hi Jose, 
>> 
>> Hi Guillermo.
>> 
>> > @@ -3541,7 +3541,7 @@ pixel occupies 3 bytes, so calculating@dots{}
>> >  @example
>> >  (poke) var ppl = byte @@ 3#b
>> >  (poke) var lines = byte @@ 4#b
>> > -(poke) save :from 0#b :size 5#b + ppl#b * lines#b :file "p.sbm"
>> > +(poke) save :from 0#b :size (5 + ppl * 3 * lines)#b :file "p.sbm"
>> 
>> i would write that as:
>> 
>> 5#B + ppl#B * lines
> hmm, I think that each pixel has 3 bytes and I think that this value is 
> missing in
> the above expression,

Yes you are right.  My point is, it is better Poke to write something
like `5#B + ppl#B * 3 * lines' than `(5 + ppl * 3 * lines)#b' IMO.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]