From dev-return-70159-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Tue Jan 11 09:19:22 2005 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 30631 invoked from network); 11 Jan 2005 09:19:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Jan 2005 09:19:20 -0000 Received: (qmail 48345 invoked by uid 500); 11 Jan 2005 09:19:19 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 47809 invoked by uid 500); 11 Jan 2005 09:19:17 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 47795 invoked by uid 99); 11 Jan 2005 09:19:17 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from dd2020.kasserver.com (HELO dd2020.kasserver.com) (81.209.148.130) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 11 Jan 2005 01:19:15 -0800 Received: from [192.168.20.150] (unknown [81.2.149.2]) by dd2020.kasserver.com (Postfix) with ESMTP id 7A8CE87F6A for ; Tue, 11 Jan 2005 10:19:11 +0100 (CET) Message-ID: <41E39A5F.70906@apache.org> Date: Tue, 11 Jan 2005 10:20:31 +0100 From: Torsten Curdt User-Agent: Mozilla Thunderbird 0.9 (X11/20041203) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap] References: <41E22BCB.9010502@apache.org> <41E24FCF.109@nada.kth.se> <942AA128-6307-11D9-A9E3-000393B3DE96@hard-bop.com> <41E281FE.1040706@apache.org> <6D0D565F-6317-11D9-A9E3-000393B3DE96@hard-bop.com> <41E29A3A.9050903@apache.org> <8DFA484A-631C-11D9-A9E3-000393B3DE96@hard-bop.com> <41E2A21F.5080106@apache.org> In-Reply-To: <41E2A21F.5080106@apache.org> X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > Problem: > > flow.js of blockA > ------------------ > function blockAFunc() { > return helper(); > } > function helper() { > return "A"; > } > > flow.js of blockB > ----------------- > function blockBFunc() { > return helper(); > } > function helper() { > return "B"; > } > > > flow.js of blockC > ----------------- > function blockCFunc() { > print(blockB()); You mean: print(blockBFunc()); > } > > What do you expect when you call blockCFun()? A or B? Sorry, for the late response ...but clearly: B > Answer: It depends on the order of declaring your scripts in > . The first helper() method declared will be found. But there is only one helper() method per block!? cheers -- Torsten