From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68490 Path: news.gmane.org!not-for-mail From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Newsgroups: gmane.comp.tex.context Subject: Re: error with table.serialize(environment) Date: Wed, 18 May 2011 17:49:34 +0200 Message-ID: <871uzwqa9d.fsf@micropit.couberia.bzh> References: <87aaektb27.fsf@micropit.couberia.bzh> <4DD3D5C9.5090309@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1305733801 15160 80.91.229.12 (18 May 2011 15:50:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 May 2011 15:50:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 18 17:49:57 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QMj0V-0002bj-NT for gctc-ntg-context-518@m.gmane.org; Wed, 18 May 2011 17:49:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2957CCAD19; Wed, 18 May 2011 17:49:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11mAMbzOySuD; Wed, 18 May 2011 17:49:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C74DBCAD12; Wed, 18 May 2011 17:49:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AD9C2CAD12 for ; Wed, 18 May 2011 17:49:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uRTdiwMJ3LZy for ; Wed, 18 May 2011 17:49:37 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 270D7CAD10 for ; Wed, 18 May 2011 17:49:37 +0200 (CEST) Original-Received: from smtp.smtpout.orange.fr (smtp03.smtpout.orange.fr [80.12.242.125]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4IFnahp018682 for ; Wed, 18 May 2011 17:49:36 +0200 Original-Received: from micropit.couberia.bzh ([86.214.168.108]) by mwinf5d26 with ME id l3pb1g00C2Lfq46033pbVe; Wed, 18 May 2011 17:49:36 +0200 Original-Received: by micropit.couberia.bzh (Postfix, from userid 1000) id 4F78F16061C; Wed, 18 May 2011 17:49:35 +0200 (CEST) In-Reply-To: <4DD3D5C9.5090309@wxs.nl> (Hans Hagen's message of "Wed, 18 May 2011 16:20:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.12.242.125; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03EJ3NAG8 - 88491f9e1bac - 20110518 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:68490 Archived-At: Hans Hagen writes: >> -- error: l-table.lua:565: unable to dump given function: >> print(table.serialize(environment)) > > to be expected And what about replacing line 565 by something like this: handle(format("%s [%q]=loadstring(%q),",depth,k, debug.getinfo(v).what == "C" and "C code" or dump(v))) -- Peter ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________