[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is string always same as number? (the consistency of lua)
- From: Alex Queiroz <asandroq@...>
- Date: Fri, 11 Feb 2011 09:46:29 -0200
Hallo,
On Fri, Feb 11, 2011 at 1:50 AM, Xavier Wang <weasley.wx@gmail.com> wrote:
>
>
> As I know, strong types has another name: static type, they means the
> variable instead of value has type: value has not type, but variable does.
> i.e. the object/memory/space hold the corresponding value has type, but not
> the value itself.
Wrong. Strong typing means that, like in Ocaml, you cannot add
integers to floating point numbers directly. Even in C, with its
static type system, integers are silently promoted to floating point
numbers in such a case.
--
-alex
http://www.artisancoder.com/
- References:
- Is string always same as number? (the consistency of lua), Xavier Wang
- Re: Is string always same as number? (the consistency of lua), Miles Bader
- Re: Is string always same as number? (the consistency of lua), Dirk Laurie
- Re: Is string always same as number? (the consistency of lua), Axel Kittenberger
- Re: Is string always same as number? (the consistency of lua), steve donovan
- Re: Is string always same as number? (the consistency of lua), Axel Kittenberger
- Re: Is string always same as number? (the consistency of lua), steve donovan
- Re: Is string always same as number? (the consistency of lua), Axel Kittenberger
- Re: Is string always same as number? (the consistency of lua), Philippe Lhoste
- Re: Is string always same as number? (the consistency of lua), Xavier Wang