From: Shark8 <OneWingedShark@gmail.com>
Subject: Re: Function definitions - with clarification
Date: Sun, 22 Jun 2014 13:55:29 -0600
Date: 2014-06-22T13:55:29-06:00 [thread overview]
Message-ID: <SwGpv.37223$LR3.6379@fx28.iad> (raw)
In-Reply-To: <bad50ba6-9ea4-410f-9574-a33f30f0fe0f@googlegroups.com>
On 22-Jun-14 12:03, montgrimpulo wrote:
> Direct reply to Shark8
>
> What is the point of saying "the above won't work" when it was
> obviously forgotten to indicate a type?
That's exactly the point.
If you're giving us incorrect stuff then it's hard to determine what
your intent really is. This is opposed to either writing out psudo-code
OR non-compiling code within otherwise syntactically-correct code [i.e
"what's the syntax for..."].
IOW, the intent is a necessary, but not sufficient condition for others
to understand/help.
To further clarify, there's the high-level intent of problem
description, which you've given; but there's also the intent with
respect as to how you are going to implement the solution. (As I pointed
out earlier, you could have used generic-parameters on your solution OR
discriminated record. Both are equally valid for a solution.)
> What is the point of changing my
> function F into a procedure F with an embedded procedure G ?
To show that there are different scopes and you cannot have a name infer
types from outer scopes... which is what it really looked like you were
trying to do by having the discriminants w/o type.
(It's also a bad idea for you to be relying on parameter/variable values
in type/subtype definitions, until you really understand the implications.)
> This does not make sense at all.
> What is then left as your contribution?
If you don't want my help, you don't have to take it.
next prev parent reply other threads:[~2014-06-22 19:55 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-22 11:34 Function definitions - with clarification montgrimpulo
2014-06-22 12:04 ` Simon Clubley
2014-06-22 14:25 ` montgrimpulo
2014-06-22 15:30 ` Georg Bauhaus
2014-06-22 17:29 ` montgrimpulo
2014-06-22 17:45 ` Shark8
2014-06-22 18:03 ` montgrimpulo
2014-06-22 18:45 ` Simon Clubley
2014-06-22 19:28 ` montgrimpulo
2014-06-22 21:04 ` Simon Wright
2014-06-22 21:17 ` Jeffrey Carter
2014-06-22 19:55 ` Shark8 [this message]
2014-06-23 16:26 ` Adam Beneschan
2014-06-29 15:31 ` cotswold
2014-06-29 19:20 ` montgrimpulo
2014-06-30 9:29 ` G.B.
2014-06-30 17:55 ` Shark8
2014-07-01 8:58 ` Georg Bauhaus
2014-07-04 6:45 ` J-P. Rosen
2014-06-30 13:23 ` montgrimpulo
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox