nul and non null types
Mildred Ki'Lya
ml.mildred593 at gmail.com
Tue Jan 26 12:40:04 UTC 2010
Hi,
earlier, we discussed the possibility to specify in the type of a local
(possibly a parameter to a function) if it should be allowed to be null
or not.
I recently found an interesting syntax, but we have to spend a special
character for it (it shouldn't be ambiguous though). It comes from the
vala language: http://www.vala-project.org/doc/vala/types.html#nullabletypes
local : TYPE?
(local is allowed to be NULL)
local : TYPE
(local must never be NULL, if it is, it's an error, either
compile-time or run-time)
That was my idea of the moment.
--
Mildred Ki'Lya
╭───────── mildred593@online.fr ──────────
│ Jabber, GoogleTalk: <mildred at jabber.fr>
│ Website: <http://ki.lya.online.fr> GPG ID: 9A7D 2E2B
│ Fingerprint: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 9A7D 2E2B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/lisaac-devel/attachments/20100126/44bef1e1/attachment.pgp>
More information about the Lisaac-devel
mailing list