[GpGiki 대문으로]

Lua Changes


5.0 final (정식버전)

pre-release가 나왔습니다. 더이상의 문제점이 보고되지 않으면 1주정도 지난후에 정식으로 발표하겠답니다. http://groups.yahoo.com/group/lua-l/message/12455

mingw 2.0(gcc 3.2)에서 빌드가 잘 안 되네요... 루트에서 make 하면 컴파일러, 인터프리터, 라이브러리 모두 주르륵 빌드가 될 거라고 생각했는데.. src부터 일일이 하고 있습니다. 우선 루트 밑에 lib와 bin 디렉토리를 직접 만들어주고, src, src/lib를 먼저 make 한 후 src/lua와 src/luac를 빌드해야 합니다...

게다가 DevCpp의 mingw로는 빌드가 제대로 안 되는군요... PortingToDevCpp에 해결책을 적어 두겠습니다.

--류광

그건 vc++6.0 용으로 컴파일할 때에도 마찬가지입니다. unix 환경에선 어떨는지 모르겠군요.

컴파일을 다 하신 것 같지만, 혹시나 해서 lua 뉴스그룹에서 긁어 옮깁니다. 참고하세요.

From:  Ignacio Casta? <castanyo@y...>
Date:  Tue Apr 1, 2003  9:20 pm
Subject:  Re: [ANNOUNCE] Lua 5.0 (pre-release) now available




Luiz Henrique de Figueiredo wrote:
> This is a pre-release because we have made several changes in config and
> Makefile since Lua 5.0 (beta) and would like to test them before freezing
the
> package. So, please download and compile it, taking some time to read
config,
> and let us know if there are any compilation problems (or bugs in the
code!).

After removing -ldl compilation worked fine under both cygwin and mingw.

Is the documentation in it's final state? I miss the documentation of some
api functions...

Anyway, good work!


Ignacio Casta?
castanyo@y...

coroutine 지원 때문에 저도 5.0으로 가려고 합니다. vc++6.0 용 프로젝트 파일 및 라이브/실행파일을 만들었는데, http://pion.2ing.net/down/vc6.zip 에서 받으시면 됩니다. lua-5.0 디렉토리 밑에 vc6 디렉토리를 만드신 후 그 디렉토리 안에다 풀어넣으시면 됩니다.

--파연

5.0 beta

릴리즈 했습니다.

곧 릴리즈 할것 같습니다.

5.0 alpha

Here is a brief summary of the changes (see HISTORY for a complete list):

+ lexical scoping.
+ Lua coroutines and support for external multithreading and coroutines.
+ standard libraries now packaged in tables.
+ tags replaced by metatables and tag methods replaced by metamethods.
+ each function can have its own global table, which can be shared.
+ new boolean type.
+ introduced lightweight userdata.
+ proper tail calls.
+ new, faster, register-based virtual machine.
+ support to user extensions in lua.c.
+ safe garbage-collector metamethods.
+ new error handling protocol.
and much more...

5.0 파이널하고 비호환성 문제는 없을것이니 5.0으로 포팅해도 된다는군요. 안정화가 되면 정식 5.0이 나올려나 봅니다.

출처: http://groups.yahoo.com/group/lua-l/message/9566

4.1w4


배포본에 언급된 내용 HISTORY

* Changes from version 4.0 to 4.1 (alpha)
  ---------------------------------------
  Language:
  + support for weak tables.
  + user-defined types (= names for tags).
  + new library functions: time, tmpfile, unpack, require, loadfile, loadstring
  + position capture in strfind.
  + (f()) adjusts the values returned by f to a single result.
  + more general syntax for function definition (e.g., function a.x.y:f()...end)
  API:
  + new API functions: lua_newthread, lua_loadfile, lua_loadstring, ...
  Implementation:
  + support for external multi-threading and coroutines.
  + safe garbage-collector tag methods.
  + new, faster, register-based virtual machine.
  + precompiled bytecodes checked for integrity.
  + strings are fully aligned.
  + read('*l') can read lines with embedded zeros.

from LuaLanguage ...

자료실에 올린 한글 패치한 실행파일 사용해 봤는데요( RedWikiWiki:LUA_20Tutorial을 보고 따라하던 중이었습니다.) tag가 안 됩니다...


E:Devlua41w4/bin>lua
Lua 4.1 (work4-h0)  Copyright (C) 1994-2001 TeCGraf, PUC-Rio
> print(tag(1))
error: attempt to call global `tag' (a nil value)
stack traceback:
   1:  main of stdin at line 1

>

tag를 사용하려면 뭔가 다른 절차가 필요한 건가요?? 그게 아니라면 한글 패치와 관련된 문제일 수도..

--류광

4.1* 에는 tag()가 빠졌습니다.

Lua 4.1 (work4)  Copyright (C) 1994-2001 TeCGraf, PUC-Rio
> print(tag)
nil
>

type()를 사용하세요. 변종(?)루아 각각에 추가된 type과 tag() 리턴값이 서로 틀려 생기는 호환성 문제 때문에 뺀것 같습니다. 자세한것은 메일링 리스트 찾아보면 나올것 같군요. -- BL

그렇군요. O.o 4.0만 사용하다보니...참고되었습니다. ^^; 원래 버젼을 잘 안바꾸는 편이라... -- redpixel

4.1 부터는 태그메소드라는 말을 안 쓰고 메타테이블(MetaTable)이라는 말을 쓰더군요. 자세한 건 좀 더 공부해봐야겠습니다. 4.1 레퍼런스 매뉴얼에 설명되어 있기는 한데, 아직 잘 모르겠습니다. 실은 제가 뭘 모르는 지도 잘 모르겠습니다. 문제도 모른다는 것이 바로 문제... -- Zho


제일 위로
최종 수정 일시: 04월 11일(2003년) 11:36 PM 편집 | 정보 | 차이 | 비슷한 페이지 DebugInfo
유용한 페이지들: 분류 분류 | 자유로운 연습장 SandBox | 무작위 페이지들 RandomPages | 인기있는 페이지들 MostPopular