Padding (Was: Re: Comments on binary specification)

On 13.3.2013 11:01, Michael Kay wrote:
> 8 - bitwise
> 
> You say the shorter operand is padded, but you don't say whether the
> padding is on the left or the right. I can see use cases for both.
> Perhaps we should require both to be the same length, and provide
> pad-left($in, $size) and pad-right($in, $size).

If there are uses cases for right padding, then I agree that what you
write above makes sense. I will add padding functions into next draft. 

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

Received on Thursday, 14 March 2013 09:44:43 UTC