[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lpack question
- From: Luis Carvalho <carvalho@...>
- Date: Wed, 26 Mar 2008 14:33:48 -0400
> I think you want
>
> local pos, mopt_unpack = string.unpack('i', block)
Oops! Better:
local pos, mopt_unpack = string.unpack(block, 'i')
Sorry for the noise. As a suggestion, I guess a more consistent interface
would be pack(f, ...) and unpack(f, s [,init]), similarly to Roberto's struct
lib.
Cheers,
Luis.
--
A mathematician is a device for turning coffee into theorems.
-- P. Erdos
--
Luis Carvalho
Applied Math PhD Student
Brown University