lua-users home
lua-l archive

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


I added 'gettbl' which returns to a table with value and unit indices now. 

I will check if it works this way

--
Hür Bütün
PhD student 

École Polytechnique Fédérale de Lausanne (EPFL) 
Industrial Process and Energy Systems Engineering (IPESE) 

EPFL Valais Wallis 
SCI-STI-FM
Rue de l'Industrie 17 
Case Postale 440, CH-1951 Sion 
tel:+41 21 69 58252

2016-10-17 18:21 GMT+02:00 rexonf <rexonf@gmail.com>:
That PhysValue class is weird in that it does not have a 'getUnit' method. Seems easy to add:

function PhysValue:getUnit () return self.symbol end

Or maybe the user should just index 'symbol', but that's a weird name for unit.