Hi,
I’m repeatedly stumbling over the restrictions where to use define. Here’s a
minimal example:
(define (hello who)
(display "Hello ")
(define (world who)
(display who))
(world who)
(display "!")
(newline))
This throws a Syntax error: …definition in
Arne Babenhauserheide writes:
> (define (hello who)
> (display "Hello ")
> (define (world who)
> (display who))
> (world who)
> (display "!")
> (newline))
Let's look at a different example first, which works with the current
semantics:
Hi David,
Thank you for answering!
May I send my reply to guile-devel?
Am Sonntag, 11. Oktober 2015, 09:58:59 schrieb David Kastrup:
> > Or am I missing something else which is enabled by this limitation?
>
> A function defined with `define' may call a function defined in a
> _following_
Luis Felipe López Acevedo skribis:
> On 2015-10-10 12:24, Thompson, David wrote:
>> On Fri, Oct 9, 2015 at 6:24 PM, Luis Felipe López Acevedo
>> wrote:
[...]
>>> I just finished an implementation of the new website. You can grab
>>>
On 2015-10-11 15:11, l...@gnu.org wrote:
Luis Felipe López Acevedo skribis:
On 2015-10-10 12:24, Thompson, David wrote:
On Fri, Oct 9, 2015 at 6:24 PM, Luis Felipe López Acevedo
wrote:
[...]
I just finished an implementation of