[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Easy Language Error



PureBytes Links

Trading Reference Links

<x-html><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<META content='"MSHTML 4.72.2106.6"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000000 size=2>I'm having a problem compiling some code and am 
totally stumped. Both functions are compiled with Auto Detect resulting in type 
Series. I'm including below snippets of code from the various things I've tried. 
I see no reason why neither #1 nor #2 will compile. Amazingly, #3 which uses a 
nested call does compile.</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2>&nbsp;VARS : McTrend(0),</FONT></DIV>
<DIV><FONT color=#000000 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Temp(0);</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2>#1 does not compile:</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT><FONT 
size=2>---------------------------</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2>&nbsp; McTrend = 
f_McClellanTrend(WkClose,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LenTrend,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Logging);<BR></FONT></DIV>
<DIV><FONT color=#000000 size=2>&nbsp;McSystemSignal = 
f_McClellanSystem(IssuAdv,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
IssuDec,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
McTrend,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LenShort,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LenLong,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LenSmth,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Logging);<BR></FONT></DIV>
<DIV>
<DIV><FONT color=#000000 size=2>#2 does not compile:</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT><FONT 
size=2>--------------------------</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2>&nbsp; McTrend = 
f_McClellanTrend(WkClose,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LenTrend,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Logging);</FONT></DIV>
<DIV><FONT color=#000000 size=2>&nbsp;Temp = McTrend[0];<BR></FONT></DIV>
<DIV><FONT color=#000000 size=2>&nbsp;McSystemSignal = 
f_McClellanSystem(IssuAdv,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
IssuDec,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Temp,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LenShort,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LenLong,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LenSmth,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Logging);<BR></FONT></DIV></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2>#3 this only syntax which will compile (function 
call is nested):</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT><FONT 
size=2>-------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2>&nbsp;McSystemSignal = 
f_McClellanSystem(IssuAdv,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
IssuDec,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
f_McClellanTrend(WkClose,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LenTrend,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Logging),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LenShort,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LenLong,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LenSmth,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Logging);<BR></FONT></DIV>
<DIV><FONT color=#000000 size=2>The compiler messages are uninformative, can 
anyone clue me in on what I'm doing wrong ? Thank you.</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2>Earl</FONT></DIV></BODY></HTML>
</x-html>From ???@??? Tue Feb 10 12:20:52 1998
X-Persona: <Neal-Halcyon>
Received: from smtp3.nwnexus.com (smtp3.nwnexus.com [206.63.63.41])
	by mail1.halcyon.com (8.8.7/8.8.7) with ESMTP id MAA16507
	for <neal@xxxxxxxxxxxxxxxx>; Tue, 10 Feb 1998 12:15:38 -0800 (PST)
Received: from mx1.eskimo.com (mx1.eskimo.com [204.122.16.48])
	by smtp3.nwnexus.com (8.8.7/8.8.7) with ESMTP id MAA24871
	for <neal@xxxxxxxxxxx>; Tue, 10 Feb 1998 12:15:36 -0800 (PST)
Received: (from smartlst@xxxxxxxxx)
	by mx1.eskimo.com (8.8.8/8.8.8) id MAA10926;
	Tue, 10 Feb 1998 12:13:37 -0800
Resent-Date: Tue, 10 Feb 1998 12:13:37 -0800
Message-Id: <199802102012.VAA10129@xxxxxxxxxxxxxxxxxxxxx>
Comments: Authenticated sender is <rp12394@xxxxxxxxxxxxxxxxxxx>
From: "hans esser" <he96@xxxxxxxxxxxxxx>
To: omega-list@xxxxxxxxxx
Date: Tue, 10 Feb 1998 21:12:05 +0100
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: (Fwd) netiquette
Reply-to: he96@xxxxxxxxxxxxxx
Priority: normal
X-mailer: Pegasus Mail for Windows (v2.54)
Resent-Message-ID: <"LIJhU3.0.Yg2.kJBuq"@mx1>
Resent-From: omega-list@xxxxxxxxxx
X-Mailing-List: <omega-list@xxxxxxxxxx> archive/latest/14050
X-Loop: omega-list@xxxxxxxxxx
Precedence: list
Resent-Sender: omega-list-request@xxxxxxxxxx
Status:   

YES PLEASE

------- Forwarded Message Follows -------
Date:          Thu, 05 Feb 1998 07:58:46 -0800
From:          Dennis Holverstott <dennis@xxxxxxxxxx>
To:            Omega List <omega-list@xxxxxxxxxx>
Subject:       netiquette

I'd appreciate it if people didn't CC personal notes to the list. Do
it privately, please. Most of the 1000 or so subscribers aren't
interested.

-Dennis


~~~~~
....and bear in mind 
that high reward does not come without its partner high risk !