Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: How to make an instance of a 'record of' empty

How to make an instance of a 'record of' empty 10 Jun 2010 09:10 #7662

Hello,

//given vRoi a variable of type record of integer:
type record of integer Roi

var Roi vRoi := {1, 2, 3};

// how can I make this one empty?

// is this one correct?
vRoi := {}

// if yes, what would be the template returned by Roi2 ( {} OR {1,2,3}

template Roi aRoi := {1,2,3}
template Roi aRoi2 modifies aRoi := {};


Any kind of help is wellcome

BR.
Uwe
The administrator has disabled public write access.

How to make an instance of a 'record of' empty 11 Jun 2010 09:35 #7663

> // is this one correct?
> vRoi := {}
Yes.

>
> // if yes, what would be the template returned by Roi2 ( {} OR {1,2,3}
>
> template Roi aRoi := {1,2,3}
> template Roi aRoi2 modifies aRoi := {};

It would be {}, also.

Best regards,

Jacob Wieland

--
Dr. Jacob Wieland
Software Engineer

Testing Technologies IST GmbH
Michaelkirchstraße 17/18
10179 Berlin, Germany

Phone +49 30 726 19 19 34 Email This email address is being protected from spambots. You need JavaScript enabled to view it.
Fax +49 30 726 19 19 20 Internet www.testingtech.com


UPCOMING EVENTS

September 10, Testing Technologies
Celebrates 10th Anniversary

September 22-24, Accredited TTCN-3 Training Course
"Theory and Practice of TTCN-3"
www.testingtech.com/services/ttcn3_training.php

November 22-24, Accredited TTCN-3 Training Course
"Theory and Practice of TTCN-3"
www.testingtech.com/services/ttcn3_training.php

Geschäftsführung: Theofanis Vassiliou-Gioles, Stephan Pietsch
Handelsregister HRB 77805, Amtsgericht Charlottenburg
Ust ID Nr.: DE 813 143 070

This e-mail may contain confidential and privileged material for the
sole use of the intended recipient. Any review, use, distribution or
disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact
the sender by reply e-mail and delete all copies of this message.
Last Edit: 06 Aug 2013 13:40 by Dirk Tepelmann. Reason: original text in reply
The administrator has disabled public write access.

How to make an instance of a 'record of' empty 11 Jun 2010 12:57 #7664

Hello Jacob,
thanks for your answer.
Is this your assumption or can you point me to a place in the spec? Or
is there maybe a CR which contains a clarification for assigning empty
value lists to record of instances.

Best regards,

Uwe
Last Edit: 06 Aug 2013 13:40 by Dirk Tepelmann. Reason: original text in reply
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin