[Top][All Lists]

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

[Chicken-users] Export a defstruct - Short Version?

From: Bahman Movaqar
Subject: [Chicken-users] Export a defstruct - Short Version?
Date: Sun, 14 Dec 2014 00:58:54 +0330
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Hi all,

I have a module with the very simple following code:

    (module point

      (import scheme)
      (import defstruct)

      (defstruct point x y))

This code obviously doesn't compile because the export list is wrong
--if I change the export list to, for example, (make-point) it compiles

I'm aware a "defstruct" is basically a shortcut to create a bunch of
functions and the standard way to export it is exporting all the
functions one by one. Now, I'm wondering if there is an easier/shorter
way to do this (something like a wild card)?

I'd appreciate any help/hint. TIA,

Bahman Movaqar - -
PGP Key ID: 0x6AB5BD68 (

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]