Skip to content
Discussion options

You must be logged in to vote

The docs/ folder in a project is there for a potential future docs generator that uses doc comments or for writing your own docs manually, there isn't anything automatic yet.
C3 does have .c3i interface files as a parallel to C .h files which can be used to put dedicated documentation comments, however they have a few more limitations than in C: they are only intended to be used to interface with precompiled libraries and not for forward declarations, so if you have a .c3i file that has the same declarations as a .c3 they will cause conflicting defitions when compiled together:

// mylib.c3
module mylib;
import std::io;

fn void some(int x)
{
  io::printfn("Hello, World! %s", x);
}

// myl…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Book-reader
Comment options

@Jamesinvi
Comment options

@lerno
Comment options

Answer selected by Jamesinvi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants