From: ma_friedrich@gmx.de To: designCPN@daimi.au.dk Date: Thu, 24 Jul 2003 17:15:56 +0200 (MEST) Subject: (dCPN) Question regarding the use of SML datatypes Dear ladies and gentlemen, I am a Civil Engineer student and I am working with Design/CPN in the course of my diploma thesis. The following problem occured: Based on the findings in the literature I tried to construct a variable that can either have the type of an integer or a string- at the same time. In SML it is possible to construct the variable as followed datatype int_or_real = I of int| S of string; Now, if I try to construct the same variable in the course of Design, I cannot tell the program to do so- various problems occur. Can you help me solving this problem? I would be more than grateful, if you could. Thank you very much in advance. Martina Friedrich --- [[ Post messages and summary of replies: designCPN@daimi.au.dk ]] [[ To (un)subscribe, send "help" to: Majordomo@daimi.au.dk ]] [[ The moderator's address: designCPN-owner@daimi.au.dk ]] [[ World Wide Web URL: http://www.daimi.au.dk/designCPN/email/ ]]