From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15920 Path: main.gmane.org!not-for-mail From: Michal Kvasnicka Newsgroups: gmane.comp.tex.context Subject: Metapost variable problem Date: Tue, 03 Aug 2004 12:37:18 +0000 Sender: ntg-context-bounces@ntg.nl Message-ID: <410F86FE.2020105@econ.muni.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1091529781 22098 80.91.224.253 (3 Aug 2004 10:43:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Aug 2004 10:43:01 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 03 12:42:54 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Brwkv-0006LH-00 for ; Tue, 03 Aug 2004 12:42:54 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5F80F127EE; Tue, 3 Aug 2004 12:42:53 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25468-02; Tue, 3 Aug 2004 12:42:50 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 363FF127E9; Tue, 3 Aug 2004 12:42:50 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 37D77127E9 for ; Tue, 3 Aug 2004 12:42:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25472-01 for ; Tue, 3 Aug 2004 12:42:48 +0200 (CEST) Original-Received: from anor.ics.muni.cz (unknown [147.251.4.35]) by ronja.ntg.nl (Postfix) with ESMTP id AC4A9127E5 for ; Tue, 3 Aug 2004 12:42:48 +0200 (CEST) Original-Received: from merkur.econ.muni.cz (merkur.econ.muni.cz [147.251.189.10]) by anor.ics.muni.cz (8.12.1/8.12.1) with ESMTP id i73AgmnD031834 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 3 Aug 2004 12:42:48 +0200 Original-Received: from [147.251.224.167] (ke-kvasnicka.econ.muni.cz [147.251.224.167]) by merkur.econ.muni.cz (8.12.3/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id i73AgmgH016770 for ; Tue, 3 Aug 2004 12:42:48 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en, cs Original-To: ConTeXt X-Muni-Spam-TestIP: 147.251.189.10 X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15920 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15920 Good afternoon. I am sorry that I bother you with this offtopic but I don't know where else I can ask. I want to prepare a better interface for my metapost macros. I want to use the record-like variables to store "object" information. But I don't know how to copy such records. More precisely, let's suppose I have string a.type; a.type:="ecicsqrt"; string a.name; a.name:="indifference curve number 1"; string a.A; a.A:="1"; string a.B; a.B:="1"; ... And I want to copy it to a record b. But b:=a; doesn't work (now b is equal to some unknown token a). Is there some simple way to do it, or have I to copy it manually like this: string b.type; b.type:=a.type; ... Many thanks for your help. With wishes of nice summer Michal Kvasnicka