From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.119.165 with SMTP id kv5mr92533igb.1.1386295121137; Thu, 05 Dec 2013 17:58:41 -0800 (PST) X-Received: by 10.49.104.69 with SMTP id gc5mr2721qeb.23.1386295121104; Thu, 05 Dec 2013 17:58:41 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!bm17no15269768qab.0!news-out.google.com!9ni1961qaf.0!nntp.google.com!p15no6934901qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 5 Dec 2013 17:58:40 -0800 (PST) In-Reply-To: <52a0de7e$0$23162$2c885b36@post.eweka.nl> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:120b:2c10:f0e0:59d6:1de2:affb:c55b; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:120b:2c10:f0e0:59d6:1de2:affb:c55b References: <52a0de7e$0$23162$2c885b36@post.eweka.nl> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Exclude parts of a package From: gautier_niouzes@hotmail.com Injection-Date: Fri, 06 Dec 2013 01:58:41 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 1732 X-Received-Body-CRC: 3411271496 Xref: news.eternal-september.org comp.lang.ada:17855 Date: 2013-12-05T17:58:40-08:00 List-Id: Do you want a compile-time error when the user is calling, say, a v.1.2 function X but plans to use OpenCL v.1.0 only ? In that case you could try using, in your separate file for 1.0, either a pragma like "Unimplemented_Unit" or trigger a warning only when the function is referenced - all that might be tricky and not portable. Or you could use the gnatprep preprocessor for that and let it spit the appropriate packages in the subfolders, one with the 1.0 functions only, one with 1.0 to 1.1, one with 1.0 to 1.2. HTH _________________________ Gautier's Ada programming http://sf.net/users/gdemont